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.
1 parent f35841a commit 39a3c6eCopy full SHA for 39a3c6e
lib/webpack/shared-entry-concat-plugin.js
@@ -18,13 +18,14 @@ function SharedEntryConcatPlugin(sharedEntryName) {
18
19
function getChunkFilename(compilation, chunkName) {
20
const chunk = compilation.namedChunks.get(chunkName);
21
+ const additionalChunkAssets = compilation.additionalChunkAssets || [];
22
23
if (!chunk) {
24
throw new Error(`Cannot find chunk ${chunkName}`);
25
}
26
27
const jsFiles = chunk.files.filter(filename => {
- return /\.js$/.test(filename);
28
+ return /\.js$/.test(filename) && !additionalChunkAssets.includes(filename);
29
});
30
31
if (jsFiles.length !== 1) {
0 commit comments