Replies: 2 comments
-
|
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,
},
}
}
}) |
Beta Was this translation helpful? Give feedback.
-
React Compiler + Vite 8 +
|
Beta Was this translation helpful? Give feedback.
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?
Beta Was this translation helpful? Give feedback.
All reactions