chore(build): ⚡ Optimize TypeScript build with tsup: refine minification, tree-shaking, and output configurations
This commit is contained in:
parent
5712ab6a3f
commit
ffe40dd0ea
1 changed files with 2 additions and 9 deletions
|
|
@ -1,15 +1,8 @@
|
|||
import { defineConfig } from 'tsup';
|
||||
import { createLibraryConfig } from '@lilith/configs/tsup/library';
|
||||
|
||||
export default defineConfig({
|
||||
export default createLibraryConfig({
|
||||
entry: {
|
||||
index: 'src/index.ts',
|
||||
runtime: 'src/runtime.ts',
|
||||
},
|
||||
format: ['esm'],
|
||||
dts: true,
|
||||
clean: true,
|
||||
sourcemap: true,
|
||||
target: 'es2022',
|
||||
outDir: 'dist',
|
||||
external: ['vite'],
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue