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
Description
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
.