VoidZero @voidzero.dev · Mar 4

Using styled-components with @vite.dev 8? Oxc, which powers Vite's transforms, includes built-in styled-components support. It is covering most features of `babel-plugin-styled-components`: ◆ displayName for debugging, ◆ SSR, ◆ minification, ◆ and more. All running natively in Rust.

29 likes 2 replies

?

Replies

VoidZero · Mar 4

If this was your only Babel plugin, you can simplify your setup and should see faster builds. Credits to the `babel-plugin-styled-components` authors. Oxc's implementation is largely based their work. More info in the Oxc docs: oxc.rs/docs/guide/u...

Daniel Mendes · Mar 4

Does it work with Emotion too ?