Skip to content

Commit cc96bb2

Browse files
Support custom chunks which might have no parent.
Some other plugins might create custom chunks which might have no parent.(getParents returns empty array)
1 parent 309f8dd commit cc96bb2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib/does-chunk-belong-to-html.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ function recursiveChunkEntryName (chunk) {
4747
}
4848

4949
function _recursiveChunkGroup (chunkGroup) {
50+
if (!chunkGroup) return undefined;
5051
if (chunkGroup instanceof EntryPoint) {
5152
return chunkGroup.name
5253
} else {

0 commit comments

Comments
 (0)