Skip to content

Commit

Permalink
fix: await bundle close in worker plugin (#2997)
Browse files Browse the repository at this point in the history
  • Loading branch information
hannoeru committed Apr 25, 2021
1 parent 6d602a0 commit 0e7125a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/plugins/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export function webWorkerPlugin(config: ResolvedConfig): Plugin {
output[0].code
).toString('base64')}`
} finally {
bundle.close()
await bundle.close()
}
} else {
// emit as separate chunk
Expand Down

0 comments on commit 0e7125a

Please sign in to comment.