Skip to content

Commit

Permalink
fix: await bundle closing (#11873)
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann authored Feb 1, 2023
1 parent 2ff5930 commit 1e6768d
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 1e6768d

Please sign in to comment.