Skip to content

Commit 7b72069

Browse files
authored
fix(worker): disable build reporter plugin when bundling worker (#11058)
1 parent 88b001b commit 7b72069

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vite/src/node/build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ export async function resolveBuildPlugins(config: ResolvedConfig): Promise<{
415415
...(options.minify ? [terserPlugin(config)] : []),
416416
...(options.manifest ? [manifestPlugin(config)] : []),
417417
...(options.ssrManifest ? [ssrManifestPlugin(config)] : []),
418-
buildReporterPlugin(config),
418+
...(!config.isWorker ? [buildReporterPlugin(config)] : []),
419419
loadFallbackPlugin()
420420
]
421421
}

0 commit comments

Comments
 (0)