Skip to content

Commit

Permalink
chore: fix rolldown exit (#575)
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa authored Jul 16, 2024
1 parent b7ce126 commit 99d2c20
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/react-server/examples/og/test-bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ async function main() {
await bundle.write({
dir: outDir,
});
await bundle.destroy();
// seems necessary to force exit
// https://github.com/rolldown/rolldown/pull/1097
// https://github.com/rolldown/rolldown/pull/985
process.exit(0);
}

if (arg === "rollup") {
Expand Down

0 comments on commit 99d2c20

Please sign in to comment.