Open History to see the last commit
1import { defineConfig } from 'vite'
2import react from '@vitejs/plugin-react'
3import tsconfigPaths from 'vite-tsconfig-paths'
4import { tanstackRouter } from '@tanstack/router-plugin/vite'
5import { tanstackStart } from '@tanstack/react-start/plugin/vite'
6import tailwindcss from '@tailwindcss/vite'
7
8// https://vitejs.dev/config/
9export default defineConfig({
10 plugins: [
11 // Follow TanStack docs: tsconfigPaths, tanstackStart (with custom react plugin), router, react, tailwind
12 tsconfigPaths(),
13 tanstackStart({ customViteReactPlugin: true }),
14 tanstackRouter(),
15 react(),
16 tailwindcss(),
17 ],
18})