Skip to content

Commit

Permalink
fix: stats.children sometimes contains not full information
Browse files Browse the repository at this point in the history
  • Loading branch information
d4rkr00t committed Apr 8, 2018
1 parent b95b527 commit f8989e6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/analyze.js
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,9 @@ module.exports = function analyze(
updateProgressBar /*: UpdateProgressBar */ = () => {}
) {
const stats =
rawStats.children && rawStats.children.length
rawStats.children &&
rawStats.children.length &&
(!rawStats.chunks || !rawStats.chunks.length)
? joinStats(rawStats.children)
: rawStats;
const chunks = getChunksData(stats);
Expand Down

0 comments on commit f8989e6

Please sign in to comment.