Skip to content

Commit

Permalink
fix(optimizer): do not perform treeshaking for pre-bundling
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jan 26, 2021
1 parent 2f41d3f commit 6b619c4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/vite/src/node/optimizer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ export async function optimizeDeps(
splitting: true,
sourcemap: true,
outdir: cacheDir,
treeShaking: 'ignore-annotations',
metafile: esbuildMetaPath,
define: {
'process.env.NODE_ENV': '"development"'
Expand Down

0 comments on commit 6b619c4

Please sign in to comment.