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:
2026-03-25 09:44:13 +08:00
parent 9d1beab2e1
commit 3663f3d010
4 changed files with 120 additions and 130 deletions
+1
View File
@@ -43,6 +43,7 @@
},
"devDependencies": {
"@furtherverse/tsconfig": "workspace:*",
"@rolldown/plugin-babel": "catalog:",
"@tailwindcss/vite": "catalog:",
"@tanstack/devtools-vite": "catalog:",
"@tanstack/react-devtools": "catalog:",
+5 -5
View File
@@ -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',