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

doesn't work with windicss

未关闭
#307 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
2k
派生
159
PR 合并指标
30 天内没有已合并 PR

描述

### 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.

贡献指南

这个仓库没有索引到贡献指南

调研方向

从 src/index.js 第 127 行开始,使用 issue 中显示的 import 重现失败。跟踪模块解析如何在排除逻辑之前运行,然后验证虚拟 windi.css 模块不再产生所报告的错误,同时现有的排除行为保持不变。

由索引模型根据 Issue 内容生成。

评估

技术栈
babel, javascript, react
领域
tooling
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。