From 77051d81b26ffe42e8a7c6769337a1c0f55f73ef Mon Sep 17 00:00:00 2001 From: Alexander Akait <4567934+alexander-akait@users.noreply.github.com> Date: Tue, 16 Apr 2024 19:52:55 +0300 Subject: [PATCH] fix: avoid multiple sass compiler creation (#1199) --- 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();