#Anyone ever had to deal with styled-jsx and Vite?

1 messages · Page 1 of 1 (latest)

trim ibex
#

Anyone ever had to implement styled-jsx (React) and Vite?

Vite doesn't know how to properly compile styled-jsx so it barfs up ugly non-styled code. Is there a plugin anyone knows about or some fancy trick to get it to compile correctly? Trying to get it to work correctly.

See: https://github.com/vercel/styled-jsx

GitHub

Full CSS support for JSX without compromises. Contribute to vercel/styled-jsx development by creating an account on GitHub.

#

I am wondering if I'll basically need to use Babel's compiler / plugin to get it to work right. That wouldn't be fun though. 😦

#

Old issue here, but someone who's struggling with it. I've tried searching the interwebs, but there doesn't seem to be a lot of info, nor does there seem to be a styled-jsx plugin for vite.

#

I might even be willing to write that plugin if that's what needs to happen.

neon granite
trim ibex
#

Oh thank you thank you, I'll look into this!