thx / gogocode

GoGoCode is a transformer for JavaScript/Typescript/HTML based on AST but providing a more intuitive API.
MIT License
5.49k stars 417 forks source link

查找时支持取反逻辑吗? #172

Closed hjiog closed 2 years ago

hjiog commented 2 years ago

查找时支持取反逻辑吗? 比如我想匹配 import '$$$!(module).css',最后只会匹配 import 'indx.css',而不会匹配到 import 'indx.module.css'

shuerguo999 commented 2 years ago

不支持,建议通过现有选择器匹配之后,在each中进行判断