fix: check for asset nullity before fileFilter

Related: https://github.com/vuejs/vue-cli/issues/4572
This commit is contained in:
Guillaume Chau 2019-09-13 15:28:43 +02:00 committed by GitHub
parent e4c7d8c0ae
commit b4c7fd5ff9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 = [];