How do I turn off browser/vendor CSS prefixes (-webkit, etc.) in Styled JSX? #7059
Unanswered
arxpoetica
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This question is specific to the @swc/plugin-styled-components plugin. I can't figure out how to turn off CSS vendor/browser prefixes such as the following:
That's a lot of noise when it's not needed. (I don't need it in my modern-browsers-only app.)
I realize this is an experimental plugin, and not fully baked, but even if I can do a pull request somewhere or if someone could point me in the right direction on how to fix it, would be much appreciated.
Trying to dig into the code, I've found this: https://github.com/swc-project/plugins/blob/main/packages/styled-jsx/transform/src/transform_css.rs#L83
But I'm not sure I understand what Rust is doing here.
FWIW, two cents, but I would think the default should be "off."
Beta Was this translation helpful? Give feedback.
All reactions