forked from imbytecat/fullstack-starter
chore(deps): add @rolldown/plugin-babel and update dependencies
- Add @rolldown/plugin-babel for React compiler support - Update TypeScript to 6.0.2 - Update TanStack packages (@tanstack/react-query, @tanstack/react-router, @tanstack/react-start) - Update @vitejs/plugin-react to 6.0.1 - Update Vite to 8.0.2 and Nitro nightly - Refactor vite.config.ts to use separate babel plugin with reactCompilerPreset
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
import babel from '@rolldown/plugin-babel'
|
||||
import tailwindcss from '@tailwindcss/vite'
|
||||
import { devtools as tanstackDevtools } from '@tanstack/devtools-vite'
|
||||
import { tanstackStart } from '@tanstack/react-start/plugin/vite'
|
||||
import react from '@vitejs/plugin-react'
|
||||
import react, { reactCompilerPreset } from '@vitejs/plugin-react'
|
||||
import { nitro } from 'nitro/vite'
|
||||
import { defineConfig } from 'vite'
|
||||
|
||||
@@ -11,10 +12,9 @@ export default defineConfig({
|
||||
tanstackDevtools(),
|
||||
tailwindcss(),
|
||||
tanstackStart(),
|
||||
react({
|
||||
babel: {
|
||||
plugins: ['babel-plugin-react-compiler'],
|
||||
},
|
||||
react(),
|
||||
babel({
|
||||
presets: [reactCompilerPreset()],
|
||||
}),
|
||||
nitro({
|
||||
preset: 'bun',
|
||||
|
||||
Reference in New Issue
Block a user