Adds first set-up for tanstack router

This commit is contained in:
2026-09-27 13:00:21 +02:00
parent 0ee48ba004
commit a8778f1aff
20 changed files with 1804 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import { tanstackRouter } from '@tanstack/router-plugin/vite'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
// Please make sure that '@tanstack/router-plugin' is passed before '@vitejs/plugin-react'
tanstackRouter({
target: 'react',
autoCodeSplitting: true,
}),
react(),
],
})