14 lines
341 B
TypeScript
14 lines
341 B
TypeScript
import { defineConfig } from 'tsup';
|
|
|
|
export default defineConfig({
|
|
entry: ['index.ts', 'cdn.ts'],
|
|
format: ['cjs', 'esm', 'iife'],
|
|
dts: true,
|
|
splitting: false,
|
|
sourcemap: false,
|
|
clean: true,
|
|
minify: true,
|
|
// Bundle @openpanel/common into the output instead of treating it as external
|
|
noExternal: ['@openpanel/common'],
|
|
});
|