Skip to content

Commit 8d1f45e

Browse files
committed
configure react plugin with babel for enhanced compilation
1 parent 89b9a98 commit 8d1f45e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

vite.config.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ export default defineConfig({
1111
ssr: 'resources/js/ssr.tsx',
1212
refresh: true,
1313
}),
14-
react(),
14+
react({
15+
babel: {
16+
plugins: ['babel-plugin-react-compiler'],
17+
},
18+
}),
1519
tailwindcss(),
1620
wayfinder({
1721
formVariants: true,

0 commit comments

Comments
 (0)