Skip to content

Commit

Permalink
Merge pull request #7831 from EECOLOR/patch-1
Browse files Browse the repository at this point in the history
Fix chunkAsset hook call in HotModuleReplacementPlugin - fixes #7828
  • Loading branch information
sokra committed Aug 1, 2018
2 parents afe3182 + 2348c3c commit 5f1852a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/HotModuleReplacementPlugin.js
Expand Up @@ -285,11 +285,7 @@ module.exports = class HotModuleReplacementPlugin {
compilation.assets[filename] = source;
hotUpdateMainContent.c[chunkId] = true;
currentChunk.files.push(filename);
compilation.hooks.chunkAsset.call(
"HotModuleReplacementPlugin",
currentChunk,
filename
);
compilation.hooks.chunkAsset.call(currentChunk, filename);
}
} else {
hotUpdateMainContent.c[chunkId] = false;
Expand Down

0 comments on commit 5f1852a

Please sign in to comment.