Replies: 1 comment
-
|
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.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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