Skip to content

Commit 0db3c2b

Browse files
refactor: fix regression after refactor and testing (#1810)
1 parent 9959484 commit 0db3c2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ class HtmlWebpackPlugin {
131131
* to support watch mode for third party plugins like the clean-webpack-plugin or the compression plugin
132132
* @type {PreviousEmittedAssets}
133133
*/
134-
let previousEmittedAssets = [];
134+
const previousEmittedAssets = [];
135135

136136
// Inject child compiler plugin
137137
const childCompilerPlugin = new CachedChildCompilation(compiler);
@@ -1028,7 +1028,7 @@ class HtmlWebpackPlugin {
10281028
});
10291029
return callback();
10301030
} else {
1031-
previousEmittedAssets = [];
1031+
previousEmittedAssets.length = 0;
10321032
assetJson.value = newAssetJson;
10331033
}
10341034

0 commit comments

Comments
 (0)