Skip to content

Commit

Permalink
fix: should not free native compiler while compiler is runnin
Browse files Browse the repository at this point in the history
  • Loading branch information
h-a-n-a committed Nov 14, 2024
1 parent 7dc61e9 commit bfb29d7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/rspack/src/Compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,9 @@ class Compiler {
new ExecuteModulePlugin().apply(this);

this.hooks.shutdown.tap("rspack:cleanup", () => {
this.#instance = undefined;
if (!this.running) {
this.#instance = undefined;
}
});
}

Expand Down

0 comments on commit bfb29d7

Please sign in to comment.