gajus / babel-plugin-react-css-modules

Transforms styleName to className using compile time CSS module resolution.
Other
2.05k stars 162 forks source link

Plugin does't work after updating react-scripts to version 4.3.0 #299

Open Tohman21 opened 3 years ago

Tohman21 commented 3 years ago

New react-scripts uses css-loader >= v4 that has a new IdentName generation. So it needs updating generic-names in package.json to v3.0.0.

As a temporary solution.

xyy94813 commented 3 years ago

I am using @dr.pogodin/babel-plugin-react-css-modules with CRA v4. It work well for me.