T
TanStack2mo ago
wee-brown

@vitejs/plugin-react-oxc with the react compiler?

Hello, does anyone know if I can activate the new react compiler with @vitejs/plugin-react-oxc?
5 Replies
sensitive-blue
sensitive-blue2mo ago
I don't think so
wee-brown
wee-brownOP2mo ago
Oh, that's unfortunate. Would you recommend to use the oxc over the react compiler?
sensitive-blue
sensitive-blue2mo ago
not comparable oxc is just like the normal vite plugin without any Babel plugin but much faster if you need the compiler, I think it's possible with the swc variant?
wee-brown
wee-brownOP2mo ago
I tried with swc, but it didn't work
SWC is adding support for the React Compiler as a plugin, allowing developers to use the compiler within their SWC-powered projects.
nvm, seems there exists a plugin I might to dig furhter into it Also, building my app with oxc runs into this error:
RangeError: Maximum call stack size exceeded at getCSSRecursively (file:///C:/Users/User/Desktop/monorepo/node_modules/.pnpm/@tanstack+start-plugin-core_4c2eeaf92a074def0a125eaf1cf5aae0/node_modules/@tanstack/start-plugin-core/dist/esm/start-manifest-plugin/plugin.js:9:38)
https://github.com/vitejs/rolldown-vite/issues/325 found this related to it
sensitive-blue
sensitive-blue2mo ago
yep I think it is a bug in rolldown vite let's wait for this issue to be triaged

Did you find this page helpful?