Skip to content


Browse files Browse the repository at this point in the history
fix: preserve annotations during build deps optimization (#8358)
  • Loading branch information
patak-dev committed 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
Expand Up @@ -485,7 +485,7 @@ export async function runOptimizeDeps(
splitting: true,
sourcemap: true,
outdir: processingCacheDir,
ignoreAnnotations: true,
ignoreAnnotations: resolvedConfig.command !== 'build',
metafile: true,
plugins: [
Expand Down

0 comments on commit 334cd9f

Please sign in to comment.