Skip to content

Commit

Permalink
perf: enable rollup treeshake
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroki0525 committed Dec 31, 2024
1 parent 9b7075c commit b98560d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export default defineConfig(options => {
format: 'esm',
outExtension: () => ({ js: '.mjs' }),
minify: true,
treeshake: true,
onSuccess: async () => {
await cp('dist/index.mjs', 'dist/index.js');
},
Expand All @@ -40,6 +41,7 @@ export default defineConfig(options => {
...commonOptions,
format: 'cjs',
minify: true,
treeshake: true,
outExtension: () => ({ js: '.cjs' }),
},
];
Expand Down

0 comments on commit b98560d

Please sign in to comment.