Skip to content

Commit

Permalink
fix: hook again
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Apr 11, 2024
1 parent c0b9552 commit 4a00573
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.js
Expand Up @@ -769,7 +769,7 @@ function getCompileFn(loaderContext, implementation, options) {
// introduces a race condition.
if (!sassModernCompilers.has(implementation)) {
sassModernCompilers.set(implementation, compiler);
webpackCompiler.hooks.watchClose.tap("sass-loader", () => {
webpackCompiler.hooks.shutdown.tap("sass-loader", () => {
compiler.dispose();
});
}
Expand Down

0 comments on commit 4a00573

Please sign in to comment.