Skip to content

Commit

Permalink
refactor: fix regression after refactor and testing (#1810)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Jun 21, 2023
1 parent 9959484 commit 0db3c2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Expand Up @@ -131,7 +131,7 @@ class HtmlWebpackPlugin {
* to support watch mode for third party plugins like the clean-webpack-plugin or the compression plugin
* @type {PreviousEmittedAssets}
*/
let previousEmittedAssets = [];
const previousEmittedAssets = [];

// Inject child compiler plugin
const childCompilerPlugin = new CachedChildCompilation(compiler);
Expand Down Expand Up @@ -1028,7 +1028,7 @@ class HtmlWebpackPlugin {
});
return callback();
} else {
previousEmittedAssets = [];
previousEmittedAssets.length = 0;
assetJson.value = newAssetJson;
}

Expand Down

0 comments on commit 0db3c2b

Please sign in to comment.