Skip to content

Use shorter variable name for an import #6266

@gaearon

Description

@gaearon

Do you want to request a feature or report a bug?

Feature.

What is the current behavior?

Webpack uses names like __WEBPACK_IMPORTED_MODULE_0__lodash___default for the imports. This makes errors very long and a bit hard to read:

example message with long variable name

What is the expected behavior?

Maybe we could use a shorter magic name that is also a bit less dramatic? For example __webpack_import_lodash__default.

If this is a feature request, what is motivation or use case for changing the behavior?

More concise error messages.

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