mirror of https://github.com/webpack/webpack.git
Error created from load/error event handler has no useful stack trace whatsoever as it's an async event and stack has unwound already at that point. To have better (sync) stacktrace of what triggered loading of the chunk, create error before stack has unwound and use it and its stacktrace later, in case of an error. This potentially has some processing overhead as browser needs to create a stacktrace. It's probably not that big though but I haven't done any real testing. |
||
|---|---|---|
| .. | ||
| FetchCompileWasmTemplatePlugin.js | ||
| JsonpChunkTemplatePlugin.js | ||
| JsonpExportMainTemplatePlugin.js | ||
| JsonpHotUpdateChunkTemplatePlugin.js | ||
| JsonpMainTemplate.runtime.js | ||
| JsonpMainTemplatePlugin.js | ||
| JsonpTemplatePlugin.js | ||
| WebEnvironmentPlugin.js | ||