Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doesn't work with windicss #307

Open
lili21 opened this issue Dec 10, 2021 · 0 comments · May be fixed by #308
Open

doesn't work with windicss #307

lili21 opened this issue Dec 10, 2021 · 0 comments · May be fixed by #308

Comments

@lili21
Copy link

lili21 commented Dec 10, 2021

Reproduce Code

import 'windi.css'

Error message

Error: Cannot find module 'windi.css'

windi.css is a virtual module, the function that causes the error is

return require.resolve(path.node.source.value);

and it runs before excluding logic, so the exclude option won't work.

lili21 pushed a commit to lili21/babel-plugin-react-css-modules that referenced this issue Dec 10, 2021
@lili21 lili21 linked a pull request Dec 10, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant