From 7cfb78ac39eee44542817606cedf16092928bf8b Mon Sep 17 00:00:00 2001 From: "alexander.akait" Date: Tue, 16 Apr 2024 19:35:56 +0300 Subject: [PATCH] fix: avoid multiple sass compiler creation --- src/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.js b/src/utils.js index 657db602..af08ed26 100644 --- a/src/utils.js +++ b/src/utils.js @@ -760,7 +760,7 @@ function getCompileFn(loaderContext, implementation, options) { // Some people can run the loader in a multi-threading way; // there is no webpack compiler object in such case. if (webpackCompiler) { - if (!sassModernCompilers.has(implementation)) { + if (!sassModernCompilers.has(webpackCompiler)) { // Create a long-running compiler process that can be reused // for compiling individual files. const compiler = await implementation.initAsyncCompiler();