babel-plugin-react-css-modules
babel-plugin-react-css-modules copied to clipboard
Transforms styleName to className using compile time CSS module resolution.
[css-loader]'s [namedExport] option (which is default in some cases since its [v7.0.0](https://github.com/webpack-contrib/css-loader/releases/tag/v7.0.0)) requires to import CSS stylesheets (when the mapping is needed in JS code) like this ```ts import *...
I tried migrating to this but I get an error when it tries to resolve the path to a css file: ``` @dr.pogodin/babel-plugin-react-css-modules tried to access @draft-js-plugins/alignment, but it isn't...
Hi, I have trouble making the plugin work with Webpack 5 + SCSS. I had a working setup with the original gajus/babel-plugin-react-css-modules, Webpack 4, and SCSS. During the migration to...
- Right now this plugin depends on https://www.npmjs.com/package/@dr.pogodin/postcss-modules-parser, which is my upgraded fork of seeminly long-abandoned https://github.com/css-modules/postcss-icss project (it looks nobody uses it anymore). - Looking in [PostCSS plugins catalog](https://www.postcss.parts/),...