/ vite.config.ts
vite.config.ts
1 import { defineConfig } from 'vite' 2 import { tanstackStart } from '@tanstack/react-start/plugin/vite' 3 import viteReact from '@vitejs/plugin-react' 4 import viteTsConfigPaths from 'vite-tsconfig-paths' 5 import tailwindcss from '@tailwindcss/vite' 6 7 const config = defineConfig({ 8 plugins: [ 9 // this is the plugin that enables path aliases 10 viteTsConfigPaths({ 11 projects: ['./tsconfig.json'], 12 }), 13 tailwindcss(), 14 tanstackStart(), 15 viteReact(), 16 ], 17 }) 18 19 export default config