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

vite.config.ts

15 lines349 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 }),
13 react(),
14 ],
15})