mirror of
https://github.com/developit/web-worker.git
synced 2026-01-25 14:10:20 +00:00
enable basic tree shaking + syntax minification in esbuild to drop unused helpers
This commit is contained in:
parent
6978159581
commit
3189088bfb
@ -2,12 +2,14 @@ import { defineConfig } from 'tsup';
|
||||
|
||||
export default defineConfig((options) => ({
|
||||
target: 'es2020',
|
||||
treeshake: false,
|
||||
treeshake: {
|
||||
preset: 'recommended'
|
||||
},
|
||||
splitting: false,
|
||||
entry: ['src/**/*.js'],
|
||||
format: ['cjs'],
|
||||
dts: false,
|
||||
minify: false,
|
||||
minifySyntax: true,
|
||||
clean: false,
|
||||
shims: true,
|
||||
...options
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user