Skip to content

Commit 539b34b

Browse files
committed
fix(tests): Upgrade webpack-recompilation-simulator
1 parent a97f509 commit 539b34b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ class HtmlWebpackPlugin {
8787
// Clear the cache once a new HtmlWebpackPlugin is added
8888
childCompiler.clearCache(compiler);
8989

90-
compiler.hooks.compilation.tap('HtmlWebpackPlugin', (compilation) => {
90+
// Clear the cache if the child compiler is outdated
91+
compiler.hooks.thisCompilation.tap('HtmlWebpackPlugin', (compilation) => {
9192
if (childCompiler.hasOutDatedTemplateCache(compilation)) {
9293
childCompiler.clearCache(compiler);
9394
}

0 commit comments

Comments
 (0)