Skip to content
Source
Sign inSign up
TanStack/router
Open History to see the last commit

vite.config.ts

17 lines417 Bytes

1import { defineConfig } from 'vite'
2import react from '@vitejs/plugin-react'
3import { tanstackRouter } from '@tanstack/router-plugin/vite'
4import { routes } from './routes'
5​
6// https://vitejs.dev/config/
7export default defineConfig({
8 plugins: [
9 tanstackRouter({
10 target: 'react',
11 autoCodeSplitting: true,
12 verboseFileRoutes: false,
13 virtualRouteConfig: routes,
14 }),
15 react(),
16 ],
17})