gajus / gajus/babel-plugin-react-css-modules
Make babel-plugin-react-css-modules work with commonjs require
Open
enhancement
- Dominant language
- JavaScript
- Stars
- 2k
- Forks
- 159
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
when requiring scss files using `require()` syntax I get `Cannot use styleName attribute without importing at least one stylesheet.`. However if I switch to using import it works (minus an eslint parsing error).
I'm trying to introduce css-modules into an old code base. I have the es6 babel preset running (that's why imports work), but code is linted without modules support and I would love to keep it that way for the time being. Is there anyway to make this plugin work with require?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.