Skip to content

Commit 5d78ba9

Browse files
committed
fix incorrect behavior of CommonsChunkPlugin
1 parent 35d7f51 commit 5d78ba9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/optimize/CommonsChunkPlugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ Take a look at the "name"/"names" or async/children option.`);
282282
return allChunks.filter((chunk) => {
283283
const found = targetChunks.indexOf(chunk);
284284
if(found >= currentIndex) return false;
285-
return chunk.isInitial();
285+
return chunk.hasRuntime();
286286
});
287287
}
288288

0 commit comments

Comments
 (0)