Skip to content
Permalink
Browse files
do not incorporate chunks without modules
  • Loading branch information
timse committed Mar 18, 2017
1 parent 416e5be commit d7ae9adfb2e9435cb740512fd48e2f9f7f5b8daa
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/optimize/FlagIncludedChunksPlugin.js
@@ -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;

0 comments on commit d7ae9ad

Please sign in to comment.