-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathvite.config.ts
More file actions
33 lines (31 loc) · 789 Bytes
/
vite.config.ts
File metadata and controls
33 lines (31 loc) · 789 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
/// <reference types="vitest" />
/// <reference types="vite/client" />
/// <reference types="vitest/config" />
import { defineConfig } from "vitest/config";
export default defineConfig({
"server": {
"open": "index.html"
},
"build": {
"outDir": "build",
"target": "esnext",
"modulePreload": {
"polyfill": false
},
"rollupOptions": { //ファイル出力設定
"output": {
"entryFileNames": "next2d.js"
}
}
},
"test": {
"globals": true,
"environment": "jsdom",
"setupFiles": [
"test.setup.ts",
"vitest-webgl-canvas-mock"
],
"pool": "threads",
"include": ["packages/**/*.test.ts"]
}
});