gajus / gajus/babel-plugin-react-css-modules

doesn't work with windicss

Open
#307 0 comments 0 reactions 0 assignees View on GitHub
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

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.