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

vite.config.ts

18 lines514 Bytes

1import { tanstackStart } from '@tanstack/react-start/plugin/vite'
2import { defineConfig } from 'vite'
3import viteReact from '@vitejs/plugin-react'
4import tailwindcss from '@tailwindcss/vite'
5​
6export default defineConfig({
7 server: {
8 port: 3000,
9 },
10 plugins: [tailwindcss(), tanstackStart(), viteReact()],
11 // See https://github.com/TanStack/router/issues/5738
12 resolve: {
13 tsconfigPaths: true,
14 alias: [
15 { find: 'use-sync-external-store/shim/index.js', replacement: 'react' },
16 ],
17 },
18})