-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.ts
More file actions
27 lines (26 loc) · 818 Bytes
/
Copy pathvite.config.ts
File metadata and controls
27 lines (26 loc) · 818 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import babel from '@rolldown/plugin-babel'
import tailwindcss from '@tailwindcss/vite'
import { tanstackStart } from '@tanstack/react-start/plugin/vite'
import viteReact, { reactCompilerPreset } from '@vitejs/plugin-react'
import { nitro } from 'nitro/vite'
import { defineConfig } from 'vite-plus'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
tailwindcss(),
tanstackStart(),
nitro(),
viteReact(),
babel({ presets: [reactCompilerPreset()] }),
],
resolve: {
tsconfigPaths: true,
},
server: {
open: true,
},
staged: {
'*.{js,jsx,ts,tsx,json,jsonc,yaml,yml,html,vue,hbs,handlebars,css,scss,less,graphql,gql,md,markdown}':
'ultracite fix --unsafe --no-error-on-unmatched-pattern',
},
})