Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
TrySound committed Nov 13, 2020
1 parent 521a955 commit 4abac50
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/analyzer.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ function readStatsFromFile(filename) {
}

function getChildAssetBundles(bundleStats, assetName) {
return bundleStats.children.find((c) =>
return (bundleStats.children || []).find((c) =>
_(c.assetsByChunkName)
.values()
.flatten()
Expand Down
5 changes: 3 additions & 2 deletions src/parseUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,9 @@ function getModulesLocations(node) {
node.elements;

return modulesNodes.reduce((result, moduleNode, i) => {
if (!moduleNode) return result;
result[i + minId] = getModuleLocation(moduleNode);
if (moduleNode) {
result[i + minId] = getModuleLocation(moduleNode);
}
return result;
}, {});
}
Expand Down

0 comments on commit 4abac50

Please sign in to comment.