diff --git a/lib/analyze.js b/lib/analyze.js index 0fa611b..0c4c72c 100644 --- a/lib/analyze.js +++ b/lib/analyze.js @@ -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);