diff --git a/vite.config.ts b/vite.config.ts index 0083381..badcea1 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -2,7 +2,7 @@ import path from 'node:path'; import { defineConfig, loadEnv } from 'vite'; import react from '@vitejs/plugin-react'; import tailwindcss from '@tailwindcss/vite'; -import { TanStackRouterVite } from '@tanstack/router-plugin/vite'; +import { tanstackRouter } from '@tanstack/router-plugin/vite'; // https://vite.dev/config/ export default defineConfig(({ mode }) => { @@ -16,7 +16,7 @@ export default defineConfig(({ mode }) => { plugins: [ // Router plugin must run BEFORE @vitejs/plugin-react so the generated // routeTree is in place when React's transform runs. - TanStackRouterVite({ target: 'react', autoCodeSplitting: true }), + tanstackRouter({ target: 'react', autoCodeSplitting: true }), react(), tailwindcss(), ],