Skip to content

Commit f8989e6

Browse files
committed
fix: stats.children sometimes contains not full information
1 parent b95b527 commit f8989e6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/analyze.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,9 @@ module.exports = function analyze(
326326
updateProgressBar /*: UpdateProgressBar */ = () => {}
327327
) {
328328
const stats =
329-
rawStats.children && rawStats.children.length
329+
rawStats.children &&
330+
rawStats.children.length &&
331+
(!rawStats.chunks || !rawStats.chunks.length)
330332
? joinStats(rawStats.children)
331333
: rawStats;
332334
const chunks = getChunksData(stats);

0 commit comments

Comments
 (0)