We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac75780 commit 1f11e47Copy full SHA for 1f11e47
packages/vite/src/node/optimizer/index.ts
@@ -626,10 +626,10 @@ export function runOptimizeDeps(
626
id,
627
file,
628
...info,
629
- // We only need to hash the output.imports in to check for stability, but adding the hash
+ // We only need to hash the chunk.imports in to check for stability, but adding the hash
630
// and file path gives us a unique hash that may be useful for other things in the future
631
fileHash: getHash(
632
- metadata.hash + file + JSON.stringify(chunk.modules),
+ metadata.hash + file + JSON.stringify(chunk.imports),
633
),
634
browserHash: metadata.browserHash,
635
// After bundling we have more information and can warn the user about legacy packages
0 commit comments