Skip to content

Commit ad5b193

Browse files
committed
fix(modern-compiler): dispose redundant compilers
fixes #1244
1 parent eda8505 commit ad5b193

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/utils.js

+2
Original file line numberDiff line numberDiff line change
@@ -768,6 +768,8 @@ function getCompileFn(loaderContext, implementation, apiType) {
768768
webpackCompiler.hooks.shutdown.tap("sass-loader", () => {
769769
compiler.dispose();
770770
});
771+
} else {
772+
compiler.dispose();
771773
}
772774
}
773775

0 commit comments

Comments
 (0)