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

vite.config.ts

16 lines390 Bytes

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