babel-plugin-react-css-modules icon indicating copy to clipboard operation
babel-plugin-react-css-modules copied to clipboard

Transforms styleName to className using compile time CSS module resolution.

Results 70 babel-plugin-react-css-modules issues
Sort by recently updated
recently updated
newest added

It appears the new css-loader has changed their hash algorithm to use md4 instead of md5 (related to https://github.com/webpack/loader-utils/pull/168 ), this means the hash generated by this babel plugin no...

enhancement

I’m trying to use generateScopedName as a function which should be possible, but it resolves as `undefined`. F.ex; ``generateScopedName: (localName, resourcePath) => { return 'foo' }`` And then if I...

question

I hope this plugin could upgrade its PostCSS version to 8, which is needed for many plugins and it is backward compatible with PostCSS 7

enhancement

When I used thread-loader, babel-plugin-react-CSS-modules generate class name for the default configuration ![image](https://user-images.githubusercontent.com/24503317/146403836-b994db1b-bdd7-4fff-ab96-ffa300f6afe4.png)

### Reproduce Code ```jsx import 'windi.css' ``` ### Error message `Error: Cannot find module 'windi.css'` `windi.css` is a virtual module, the function that causes the error is https://github.com/gajus/babel-plugin-react-css-modules/blob/eb008aaa7c8efc61c266f15b03c101cbb111a53e/src/index.js#L127 and it...

Basically what I was doing is that I have a scss files name "_abc.scss" which is imported into "abcd.scss" and then I import "abcd.scss" to my "main.js" file. In my...

question

It turns out that `babel-plugin-react-css-modules` is using `generic-names` v2, which is different a bit with newer `Webpack` in the [hash]. `generic-names` v3 solve it. see [this update](https://github.com/css-modules/generic-names/commit/191c17e0784275e7918700d3bed3dc0195408259). So we can...

I have a child component, which accepts multiple props for styles, one for the container, and other for one of the internal elements. Generally, I would just name them something...

There's a problem with extending `Attributes` and `HTMLAttributes` interface with `styleName` with `@types/react@^17`. It simply has no effect: ``` Property 'styleName' does not exist on type 'DetailedHTMLProps'. ``` ` "@types/react-css-modules":...