-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathtsconfig.json
30 lines (29 loc) · 1.01 KB
/
tsconfig.json
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
{
"compilerOptions": {
// "target": "ESNext",
// "module": "ESNext",
"target": "es2020",
"module": "es2020",
"useDefineForClassFields": true,
"moduleResolution": "Node",
"strict": true,
"jsx": "preserve",
"resolveJsonModule": true,
"isolatedModules": true,
"esModuleInterop": true,
"lib": ["ESNext", "DOM"],
"skipLibCheck": true,
"noEmit": true,
"noImplicitAny": false,
"sourceMap": true,
"baseUrl": ".",
"types": ["vite/client", "element-plus/global", "@intlify/unplugin-vue-i18n/messages"],
"paths": {
"@/*": ["src/*"]
}
},
// 使用按需导入之后,不能手动 import { ElMessageBox } from 'element-plus',否则会导致没有css样式
// 应删除对 element-plus 的 import,但删除后会飘红报错,这是需要这里加上 auto-imports.d.ts 即可
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue", "mock/**/*.ts", "auto-imports.d.ts"],
"references": [{ "path": "./tsconfig.node.json" }]
}