diff --git a/packages/vite/src/node/plugins/worker.ts b/packages/vite/src/node/plugins/worker.ts index adafdbcf062388..9682e7a1526f85 100644 --- a/packages/vite/src/node/plugins/worker.ts +++ b/packages/vite/src/node/plugins/worker.ts @@ -554,7 +554,7 @@ export function webWorkerPlugin(config: ResolvedConfig): Plugin { : duplicateAsset.code // don't emit if the file name and the content is same if (isSameContent(content, asset.source)) { - return + continue } }