mirror of https://github.com/webpack/webpack.git
do not incorporate chunks without modules
This commit is contained in:
parent
416e5beeb4
commit
d7ae9adfb2
|
@ -19,6 +19,8 @@ class FlagIncludedChunksPlugin {
|
|||
// as we loop twice the current A will be B and B then A
|
||||
if(chunkA.modules.length < chunkB.modules.length) return;
|
||||
|
||||
if(chunkB.modules.length === 0) return;
|
||||
|
||||
// is chunkB in chunkA?
|
||||
for(let i = 0; i < chunkB.modules.length; i++) {
|
||||
if(chunkA.modules.indexOf(chunkB.modules[i]) < 0) return;
|
||||
|
|
Loading…
Reference in New Issue