Skip to content

Commit 334cd9f

Browse files
authoredMay 27, 2022
fix: preserve annotations during build deps optimization (#8358)
1 parent 168de2d commit 334cd9f

File tree

1 file changed

+1
-1
lines changed
  • packages/vite/src/node/optimizer

1 file changed

+1
-1
lines changed
 

‎packages/vite/src/node/optimizer/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ export async function runOptimizeDeps(
485485
splitting: true,
486486
sourcemap: true,
487487
outdir: processingCacheDir,
488-
ignoreAnnotations: true,
488+
ignoreAnnotations: resolvedConfig.command !== 'build',
489489
metafile: true,
490490
define,
491491
plugins: [

0 commit comments

Comments
 (0)
Please sign in to comment.