-
Notifications
You must be signed in to change notification settings - Fork 59
Expand file tree
/
Copy pathvite.config.ts
More file actions
23 lines (19 loc) · 805 Bytes
/
Copy pathvite.config.ts
File metadata and controls
23 lines (19 loc) · 805 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { defineConfig, type UserConfig } from 'vite'
import { devtools } from '@tanstack/devtools-vite'
import tsconfigPaths from 'vite-tsconfig-paths'
import { tanstackStart } from '@tanstack/react-start/plugin/vite'
import viteReact from '@vitejs/plugin-react'
import tailwindcss from '@tailwindcss/vite'
import { nitro } from 'nitro/vite'
/* Plugins come from packages that bundle their own Vite typings (TanStack devtools,
* nitro/rolldown, etc.). In a workspace, those are nominally different from this
* app's `vite` — assert once here instead of drowning in TS2769 chains. */
const plugins = [
devtools(),
nitro(),
tsconfigPaths({ projects: ['./tsconfig.json'] }),
tailwindcss(),
tanstackStart(),
viteReact(),
] as UserConfig['plugins']
export default defineConfig({ plugins })