-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.ts
27 lines (26 loc) · 901 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
import react from "@vitejs/plugin-react-swc";
import * as path from "path";
import pluginChecker from "vite-plugin-checker";
import { defineConfig } from "vitest/config";
// https://vitejs.dev/config/
export default defineConfig({
test: {
globals: true,
environment: "jsdom",
setupFiles: "./src/setup-tests.ts"
},
resolve: {
alias: {
"@/": path.resolve(__dirname, "src"),
"@/app": path.resolve(__dirname, "src/app"),
"@/processes": path.resolve(__dirname, "src/processes"),
"@/screens": path.resolve(__dirname, "src/screens"),
"@/layouts": path.resolve(__dirname, "src/layouts"),
"@/widgets": path.resolve(__dirname, "src/widgets"),
"@/features": path.resolve(__dirname, "src/features"),
"@/entities": path.resolve(__dirname, "src/entities"),
"@/shared": path.resolve(__dirname, "src/shared")
}
},
plugins: [react(), pluginChecker({ typescript: true })]
});