gucong3000 / postcss-jsx

PostCSS syntax for parsing CSS in JS literals
MIT License
76 stars 28 forks source link

jsx属性拓展 #70

Open zhangdexian opened 1 year ago

zhangdexian commented 1 year ago

JSXAttribute: (path) => { if (/^(?:css|style)$/.test(path.node.name.name)) { addObjectJob(path.get("value.expression")); } },

目前看只支持css合style属性,能否增加一个配置项去解析自定义的props,一些组件传样式过去还挺常见的,比如bodyStyle