Skip to content

Commit

Permalink
fix: avoid multiple sass compiler creation (#1199)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Apr 16, 2024
1 parent 4edc139 commit 77051d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.js
Expand Up @@ -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();
Expand Down

0 comments on commit 77051d8

Please sign in to comment.