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.
writeBundle
1 parent e418d5e commit 973087fCopy full SHA for 973087f
packages/vite/src/node/build.ts
@@ -1317,7 +1317,7 @@ function wrapEnvironmentHook<HookName extends keyof Plugin>(
1317
if (hookName === 'augmentChunkHash') {
1318
injectChunkMetadata(chunkMetadataMap, args[0])
1319
}
1320
- if (hookName === 'generateBundle') {
+ if (hookName === 'generateBundle' || hookName === 'writeBundle') {
1321
const bundle = args[1] as OutputBundle
1322
for (const chunk of Object.values(bundle)) {
1323
if (chunk.type === 'chunk') {
0 commit comments