perf(build): ⚡ Optimize TypeScript build performance with enhanced minification, source maps, and tree-shaking via updated tsup config
This commit is contained in:
parent
fc3e255745
commit
c0c9ae3f11
1 changed files with 11 additions and 0 deletions
11
tsup.config.ts
Normal file
11
tsup.config.ts
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import { defineConfig } from 'tsup';
|
||||
|
||||
export default defineConfig({
|
||||
entry: ['src/index.ts'],
|
||||
format: ['esm'],
|
||||
dts: true,
|
||||
clean: true,
|
||||
sourcemap: true,
|
||||
treeshake: true,
|
||||
target: 'es2022',
|
||||
});
|
||||
Loading…
Add table
Reference in a new issue