-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathvite.config.ts
More file actions
44 lines (42 loc) · 949 Bytes
/
vite.config.ts
File metadata and controls
44 lines (42 loc) · 949 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
43
44
/// <reference types="vitest/config" />
import msal from "@intility/vite-plugin-msal";
import babel from "@rolldown/plugin-babel";
import react, { reactCompilerPreset } from "@vitejs/plugin-react";
import { defineConfig } from "vite";
import checker from "vite-plugin-checker";
// https://vite.dev/config/
export default defineConfig({
plugins: [
react(),
babel({
presets: [reactCompilerPreset()],
}),
msal(),
checker({
typescript: true,
biome: {
command: "check",
},
eslint: {
lintCommand: "eslint",
useFlatConfig: true,
},
}),
],
resolve: {
tsconfigPaths: true,
},
server: {
port: 3000,
open: true,
},
build: {
sourcemap: true,
},
test: {
// https://testing-library.com/docs/react-testing-library/setup#auto-cleanup-in-vitest
globals: true,
environment: "happy-dom",
setupFiles: "./src/setupTests.ts",
},
});