Skip to content

Commit

Permalink
Merge pull request #9696 from sodatea/fix-size-limits
Browse files Browse the repository at this point in the history
fix: check the asset's existence before running filter
  • Loading branch information
sokra committed Sep 13, 2019
2 parents 9c6b367 + 025c253 commit c5450b4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/performance/SizeLimitsPlugin.js
Expand Up @@ -40,6 +40,7 @@ module.exports = class SizeLimitsPlugin {
entrypoint.getFiles().reduce((currentSize, file) => {
const asset = compilation.getAsset(file);
if (
asset &&
assetFilter(asset.name, asset.source, asset.info) &&
asset.source
) {
Expand Down

0 comments on commit c5450b4

Please sign in to comment.