Skip to content

Break React.Context in production build #122

Open
@lianghx-319

Description

Describe the bug
In some case, this plugin break the source code, which is written by react.

Specific, when the code about React.Context included in plugin process, the behavior will change in production build. But dev mode is all find.

To Reproduce Provided later
Steps to reproduce the behavior:

  1. Clone repository '...'
  2. Run '....'
  3. See error

Expected behavior
I can include all source code to windicss process, don't worry about suffering crash on production deploy.

Screenshots
image

Additional context

  • When I disabled windicss plugin, all find. I have no idea the reason why.

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