diff --git a/packages/rspack/src/Compiler.ts b/packages/rspack/src/Compiler.ts index a0205b270da..824940c600c 100644 --- a/packages/rspack/src/Compiler.ts +++ b/packages/rspack/src/Compiler.ts @@ -248,7 +248,7 @@ class Compiler { new JsLoaderRspackPlugin(this).apply(this); new ExecuteModulePlugin().apply(this); - this.hooks.shutdown.tap("Compiler", () => { + this.hooks.shutdown.tap("rspack:cleanup", () => { this.#instance = undefined; }); }