Skip to content

Commit

Permalink
fix: await bundle closing (vitejs#11873)
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann authored and futurGH committed Feb 26, 2023
1 parent 1d1603c commit 56881ea
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 @@ -652,7 +652,7 @@ export async function build(
outputBuildError(e)
throw e
} finally {
if (bundle) bundle.close()
if (bundle) await bundle.close()
}
}

Expand Down

0 comments on commit 56881ea

Please sign in to comment.