forked from eruptionjs/core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.ts
More file actions
19 lines (18 loc) · 439 Bytes
/
Copy pathvite.config.ts
File metadata and controls
19 lines (18 loc) · 439 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/// <reference types="vitest" />
import react from '@vitejs/plugin-react'
import { defineConfig } from 'vite'
import tsconfigPaths from 'vite-tsconfig-paths'
// https://vitejs.dev/config/
export default defineConfig({
envDir: './env/',
plugins: [react(), tsconfigPaths()],
test: {
globals: true,
watch: false,
environment: 'happy-dom',
setupFiles: './src/setup-test.ts',
},
build: {
sourcemap: true,
},
})