-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathvite.config.mts
More file actions
42 lines (41 loc) · 965 Bytes
/
vite.config.mts
File metadata and controls
42 lines (41 loc) · 965 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/// <reference types="vitest" />
/// <reference types="vite/client" />
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import tsconfigPaths from 'vite-tsconfig-paths';
import { tanstackRouter } from '@tanstack/router-plugin/vite';
import oxlintPlugin from 'vite-plugin-oxlint';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
oxlintPlugin({
params: '--quiet',
}),
tanstackRouter({
target: 'react',
autoCodeSplitting: true,
}),
react(),
tsconfigPaths(),
],
test: {
include: ['src/**/*.{test,spec}.{js,ts,tsx}'],
exclude: ['src/e2e'],
globals: true,
environment: 'jsdom',
setupFiles: 'src/setupTests.ts',
reporters: 'verbose',
coverage: {
provider: 'istanbul',
},
},
server: {
host: '0.0.0.0',
proxy: {
'^/api': {
target: 'http://localhost:3000',
changeOrigin: true,
},
},
},
});