Skip to content

After react-hot-loader/babel plugin compiled, some code missing #1388

Closed
@yujiangshui

Description

@yujiangshui

Description

What you are reporting: BUG

Expected behavior

What you think should happen: The code should work as expected.

Actual behavior

What actually happens: After enabling react-hot-loader/babel plugin and compiling, some parts of code missing, and only in the production environment, caused a serious production level issue.

Environment

React Hot Loader version: ^4.12.15

Run these commands in the project folder and fill in their results:

  1. node -v: v10.15.3
  2. npm -v: 6.4.1

Then, specify:

  1. Operating system: macOS 10.14
  2. Browser and version: Chrome 78

Reproducible Demo

Demo here: https://github.com/yujiangshui/hot-loader-replace-issue. Please follow the instruction on README.md.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions