Open lili21 opened 2 years ago
import 'windi.css'
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
windi.css
and it runs before excluding logic, so the exclude option won't work.
Reproduce Code
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#L127and it runs before excluding logic, so the exclude option won't work.