From ad5b19389a1cfc093288ca04a83d2e2cdddd0e29 Mon Sep 17 00:00:00 2001 From: hikiko4ern Date: Thu, 31 Oct 2024 20:59:44 +0700 Subject: [PATCH] fix(modern-compiler): dispose redundant compilers fixes #1244 --- src/utils.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/utils.js b/src/utils.js index 76d22b36..4ea78ce6 100644 --- a/src/utils.js +++ b/src/utils.js @@ -768,6 +768,8 @@ function getCompileFn(loaderContext, implementation, apiType) { webpackCompiler.hooks.shutdown.tap("sass-loader", () => { compiler.dispose(); }); + } else { + compiler.dispose(); } }