Skip to content

Commit

Permalink
fix: preserve annotations during build deps optimization (#8358)
Browse files Browse the repository at this point in the history
  • Loading branch information
patak-dev authored May 27, 2022
1 parent 168de2d commit 334cd9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/optimizer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ export async function runOptimizeDeps(
splitting: true,
sourcemap: true,
outdir: processingCacheDir,
ignoreAnnotations: true,
ignoreAnnotations: resolvedConfig.command !== 'build',
metafile: true,
define,
plugins: [
Expand Down

0 comments on commit 334cd9f

Please sign in to comment.