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 8646e4e commit 7912459Copy full SHA for 7912459
packages/vite/src/node/build.ts
@@ -1359,7 +1359,11 @@ function injectChunkMetadata(
1359
__modules: chunk.modules,
1360
})
1361
}
1362
- chunk.viteMetadata = chunkMetadataMap.get(key)
+ // define instead of assign to avoid detected as a change
1363
+ // https://github.com/rolldown/rolldown/blob/f4c5ff27799f2b0152c689c398e61bc7d30429ff/packages/rolldown/src/utils/transform-to-rollup-output.ts#L87
1364
+ Object.defineProperty(chunk, 'viteMetadata', {
1365
+ value: chunkMetadataMap.get(key),
1366
+ })
1367
Object.defineProperty(chunk, 'modules', {
1368
get() {
1369
return chunk.viteMetadata!.__modules
0 commit comments