gajus / gajus/babel-plugin-react-css-modules
doesn't work with windicss
- Dominant language
- JavaScript
- Stars
- 2k
- Forks
- 159
- PR merge metrics
- No merged PRs in 30d
Description
### 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 runs before excluding logic, so the exclude option won't work.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start in src/index.js at line 127 and reproduce the failure with the import shown in the issue. Trace how module resolution runs before the exclude logic, then verify that the virtual windi.css module no longer produces the reported error while the existing exclusion behavior remains intact.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- babel, javascript, react
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100