Skip to content

Commit

Permalink
fix(modern-compiler): dispose redundant compilers
Browse files Browse the repository at this point in the history
fixes #1244
  • Loading branch information
hikiko4ern committed Oct 31, 2024
1 parent eda8505 commit ad5b193
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -768,6 +768,8 @@ function getCompileFn(loaderContext, implementation, apiType) {
webpackCompiler.hooks.shutdown.tap("sass-loader", () => {
compiler.dispose();
});
} else {
compiler.dispose();

Check warning on line 772 in src/utils.js

View check run for this annotation

Codecov / codecov/patch

src/utils.js#L771-L772

Added lines #L771 - L772 were not covered by tests
}
}

Expand Down

0 comments on commit ad5b193

Please sign in to comment.