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

p-[24px] 这种类名有时候失效,原因已查明,但不知道是否有修复的必要 #104

Closed
jhxlhl1023 opened this issue Oct 19, 2023 · 0 comments
Assignees

Comments

@jhxlhl1023
Copy link

描述这个问题:
p-[24px] 这种类名有时候失效,原因已查明,但不知道是否有修复的必要

如何复现:
不同源文件中存在相同的 className

期待的结果:
所有的源文件都有正确的编译结果

问题相关截图:
image
原因是这段注释的代码中每当有 className 在一个文件中被替换后被移除,导致同一 className 只会被在一个文件中被替换。
理解它是为了性能优化,但是否应该加入计数器,来保证编译结果的准确性。

本插件版本:

开发框架版本(三选一填写):

  • Taro:
  • Uni-app:
  • Vite:

其余信息:

@ItsRyanWu ItsRyanWu linked a pull request Oct 24, 2023 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

No branches or pull requests

2 participants