Skip to content

Commit

Permalink
fix: check for asset nullity before fileFilter
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Sep 13, 2019
1 parent e4c7d8c commit b4c7fd5
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 b4c7fd5

Please sign in to comment.