Replies: 2 comments 1 reply
|
Yes this is expected, but if your only usage of Babel is for styled component, you should be able to use oxc builtin transform: import react from '@vitejs/plugin-react'
export default defineConfig({
plugins: [react()],
oxc: {
plugins: {
// https://oxc.rs/docs/guide/usage/transformer/plugins.html#basic-usage
styledComponents: {
displayName: true,
ssr: true,
fileName: true,
minify: true,
},
}
}
}) |
React Compiler + Vite 8 +
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Previously I'm using styled jsx:
After Vite 8, should I change it to below?
All reactions