From 4a005733bbbebc10db977ba1bdefcaf9c1f61409 Mon Sep 17 00:00:00 2001 From: "alexander.akait" Date: Thu, 11 Apr 2024 16:49:01 +0300 Subject: [PATCH] fix: hook again --- src/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.js b/src/utils.js index 64fc8f91..4badab53 100644 --- a/src/utils.js +++ b/src/utils.js @@ -769,7 +769,7 @@ function getCompileFn(loaderContext, implementation, options) { // introduces a race condition. if (!sassModernCompilers.has(implementation)) { sassModernCompilers.set(implementation, compiler); - webpackCompiler.hooks.watchClose.tap("sass-loader", () => { + webpackCompiler.hooks.shutdown.tap("sass-loader", () => { compiler.dispose(); }); }