How to custom React vite plugin
Hi ! I want to test react-strict-dom with TanStack start but I don't really know how to custom the react vite plugin to use StyleX + RSD babel plugin/preset.
Thanks!
9 Replies
adverse-sapphire•7mo ago
what happens if you configure it like that?
eager-peachOP•7mo ago
eager-peachOP•7mo ago
I guess that register the React plugin twice
Do you think it's not possible for now ?
adverse-sapphire•7mo ago
dont really know, sorry
eager-peachOP•7mo ago
Arf
Wouldn't it be the fault of tanstack start to export defineConfig rather than using vite.config directly and exporting a plugin for tanstack?
( sorry for my english )
adverse-sapphire•7mo ago
we are working on becoming just a vite plugin
but as of now, we are not
eager-peachOP•7mo ago
oh that's nice
is this planned on a roadmap or something ?
adverse-sapphire•7mo ago
we currently are based on vinxi, and we are removing that to be based on vite/nitro alone
ongoing effort, high prio
eager-peachOP•7mo ago
Yes, I saw that in the documentation. It's a great job, thanks for your time. I've never used Next/Remix because I don't really like their approach... But TanStack start is the right solution for me!