We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 677c434 + 5da8b70 commit 078ddbcCopy full SHA for 078ddbc
lib/webpack/shared-entry-concat-plugin.js
@@ -18,13 +18,15 @@ function SharedEntryConcatPlugin(sharedEntryName) {
18
19
function getChunkFilename(compilation, chunkName) {
20
const chunk = compilation.namedChunks.get(chunkName);
21
+ // any "additional" files - like .hot-update.js when using --hot
22
+ const additionalChunkAssets = compilation.additionalChunkAssets || [];
23
24
if (!chunk) {
25
throw new Error(`Cannot find chunk ${chunkName}`);
26
}
27
28
const jsFiles = chunk.files.filter(filename => {
- return /\.js$/.test(filename);
29
+ return /\.js$/.test(filename) && !additionalChunkAssets.includes(filename);
30
});
31
32
if (jsFiles.length !== 1) {
0 commit comments