Skip to content

Commit

Permalink
Merge pull request #9701 from Akryum/patch-1
Browse files Browse the repository at this point in the history
fix: check for asset nullity before fileFilter
  • Loading branch information
sokra committed Sep 13, 2019
2 parents e4c7d8c + b4c7fd5 commit 705a3f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/performance/SizeLimitsPlugin.js
Expand Up @@ -68,7 +68,7 @@ module.exports = class SizeLimitsPlugin {

const fileFilter = name => {
const asset = compilation.getAsset(name);
return assetFilter(asset.name, asset.source, asset.info);
return asset && assetFilter(asset.name, asset.source, asset.info);
};

const entrypointsOverLimit = [];
Expand Down

0 comments on commit 705a3f5

Please sign in to comment.