-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
26 lines (26 loc) · 1.19 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
{
"compilerOptions": {
"target" : "ESNext",
"useDefineForClassFields": true,
"module" : "ESNext",
"moduleResolution" : "Node",
"strict" : true,
"jsx" : "preserve",
"resolveJsonModule" : true,
"isolatedModules" : true,
"esModuleInterop" : true,
"lib" : ["ESNext", "DOM"],
"skipLibCheck" : true,
"noEmit" : true,
"types" : ["element-plus/global", "vite/client"],
"allowJs" : true, // 允许编译器编译JS,JSX文件
"baseUrl" : "./",
// "paths"是相对于"baseUrl"进行解析的
"paths" : {
"@/*": ["src/*"]
}
},
"include" : ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue", "vite.config.ts", "src/vite-env.d.ts"],
// references属性是 TypeScript 3.0 的新特性,允许将 TypeScript 程序拆分结构化(即拆成多个文件,分别配置不同的部分)。
"references": [{ "path": "./tsconfig.node.json" }]
}