mirror of https://github.com/webpack/webpack.git
				
				
				
			Merge pull request #9696 from sodatea/fix-size-limits
fix: check the asset's existence before running filter
This commit is contained in:
		
						commit
						c5450b460e
					
				|  | @ -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 | ||||
| 					) { | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue