Skip to content

Add Error code for chunk loading failure #346

Closed
@SergeyPanchenkoWeWork

Description

@SergeyPanchenkoWeWork

Feature request

Added code property on Error object received when failed to load chunk, To help identify loading errors.
Related to webpack/webpack#8695

What is the expected behavior?
add CSS_CHUNK_LOAD_FAILED in error.code

How should this be implemented in your opinion?
Add error.code = 'CSS_CHUNK_LOAD_FAILED' in https://github.com/webpack-contrib/mini-css-extract-plugin/blob/master/src/index.js#L362

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions