15 lines
330 B
TypeScript
15 lines
330 B
TypeScript
import { defineConfig } from 'tsup';
|
|
|
|
export default defineConfig({
|
|
entry: ['src/index.ts'],
|
|
format: ['esm', 'cjs'],
|
|
target: 'es2022',
|
|
dts: true,
|
|
clean: true,
|
|
// Code-split the lazily-imported scenario engine out of the initial chunk.
|
|
splitting: true,
|
|
treeshake: true,
|
|
platform: 'browser',
|
|
outDir: 'dist',
|
|
});
|