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

Lines changed: 2 additions & 2 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy