Skip to content

Commit

Permalink
fix: await bundle close (#2313)
Browse files Browse the repository at this point in the history
  • Loading branch information
hannoeru committed Mar 2, 2021
1 parent 4396057 commit c988574
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ export async function build(
} finally {
parallelCallCounts--
if (parallelCallCounts <= 0) {
paralellBuilds.forEach((bundle) => bundle.close())
await Promise.all(paralellBuilds.map((bundle) => bundle.close()))
paralellBuilds.length = 0
}
}
Expand Down

0 comments on commit c988574

Please sign in to comment.