-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.ts
33 lines (32 loc) · 738 Bytes
/
vite.config.ts
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
import { defineConfig } from "vitest/config"
import react from "@vitejs/plugin-react"
import path from 'path'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
server: {
open: false,
},
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
'@core': path.resolve(__dirname, './src/core'),
'@modules': path.resolve(__dirname, './src/modules'),
'@app': path.resolve(__dirname, './src/modules/app'),
}
},
envPrefix: 'REACT_APP',
build: {
outDir: "build",
sourcemap: true,
rollupOptions: {
input: 'index.html'
}
},
test: {
globals: true,
environment: "jsdom",
setupFiles: "src/setupTests",
mockReset: true,
},
})