@@ -0,0 +1,14 @@
|
||||
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',
|
||||
});
|
||||
Reference in New Issue
Block a user