Skip to content

Commit

Permalink
fix(v5): check for chunks before checking length. re: #224
Browse files Browse the repository at this point in the history
  • Loading branch information
shellscape committed Dec 2, 2020
1 parent ad20acb commit 100cbe2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const reduceAssets = (files, asset, moduleAssets) => {
});
}

const isEntryAsset = asset.chunks.length > 0;
const isEntryAsset = asset.chunks && asset.chunks.length > 0;
if (isEntryAsset) {
return files;
}
Expand Down

0 comments on commit 100cbe2

Please sign in to comment.