-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvite.config.ts
45 lines (44 loc) · 1.21 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import path from "path";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue()],
build: { chunkSizeWarningLimit: 1000 },
test: {
globals: true,
environment: "jsdom",
coverage: {
all: true,
clean: true,
exclude: [
"**/.cache",
"**/.temp",
"**/node_modules",
"**/dist/**",
"public",
"coverage/**",
"**/Router/*",
"packages/*/test{,s}/**",
"**/*.d.ts",
"test{,s}*{.,-}test.{js,cjs,mjs,ts,tsx,jsx}",
"**/*.{test,spec}.*",
"**/{ava,babel,nyc}.config.{js,cjs,mjs}",
"**/{jest}.config.{js,cjs,mjs,ts}",
"**/**?(.)config.{js,cjs,mjs,ts}",
"**/{{A,a}pp,main}.?(module.){js,cjs,mjs,ts,vue}",
"**/{karma,rollup,webpack}.config.js",
"**/.{eslint,mocha}rc.{js,cjs}",
/** custom files */
"**/interfaces.ts",
],
},
},
resolve: {
alias: {
"@client": path.resolve(__dirname, "src", "client"),
"@world": path.resolve(__dirname, "src", "world"),
},
extensions: [".js", ".json", ".mjs", ".ts", ".tsx"], // must not contain .vue
},
});