Skip to content

module.hot.decline fails to parse module name #1075

@kpdecker

Description

@kpdecker

https://github.com/webpack/webpack/blob/master/lib/HotModuleReplacementPlugin.js#L199 is looking for two arguments and otherwise it leaves the module id unaltered. This causes the module to be not be declined as the moduleId check is expecting an internal module id:
https://github.com/webpack/webpack/blob/master/lib/HotModuleReplacement.runtime.js#L253

From the docs it also looks like this function fails in the same way for array entry types.

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