Skip to content

Commit 77051d8

Browse files
fix: avoid multiple sass compiler creation (#1199)
1 parent 4edc139 commit 77051d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,7 @@ function getCompileFn(loaderContext, implementation, options) {
760760
// Some people can run the loader in a multi-threading way;
761761
// there is no webpack compiler object in such case.
762762
if (webpackCompiler) {
763-
if (!sassModernCompilers.has(implementation)) {
763+
if (!sassModernCompilers.has(webpackCompiler)) {
764764
// Create a long-running compiler process that can be reused
765765
// for compiling individual files.
766766
const compiler = await implementation.initAsyncCompiler();

0 commit comments

Comments
 (0)