webpack-contrib / mini-css-extract-plugin

Lightweight CSS extraction plugin
MIT License
4.65k stars 389 forks source link

Tag chunk load error with ChunkLoadError #1053

Closed jorrit closed 7 months ago

jorrit commented 11 months ago

The Webpack runtime sets the name of chunk load errors to ChunkLoadError (see for example https://github.com/webpack/webpack/blob/1f13ff9fe587e094df59d660b4611b1bd19aed4c/lib/css/CssLoadingRuntimeModule.js#L350).

My suggestion is to also add this to the error thrown by mini-css-extract-plugin (around https://github.com/webpack-contrib/mini-css-extract-plugin/blob/d5e540baf8280442e523530ebbbe31c57a4c4336/src/index.js#L877).

jorrit commented 7 months ago

Thanks!