Skip to content
This repository was archived by the owner on Aug 9, 2023. It is now read-only.
This repository was archived by the owner on Aug 9, 2023. It is now read-only.

react(h) fail to work properly in webpack -p #3

Closed
@kthjm

Description

@kthjm

Im using rehype-react, But when bundle with uglify (webpack -p), style attribute stored in hast isn't reflected to view.

I looked it up, It seems the cause is node._store.

to #L174

to #L25

result

: process.env.NODE_ENV === "development" (work)

: process.env.NODE_ENV === "production" (not work)

I don't know why this caused, But parseStyle don't work because r === false.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions