-
Notifications
You must be signed in to change notification settings - Fork 232
/
tsconfig.json
36 lines (36 loc) · 1.15 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
31
32
33
34
35
36
{
"_desc": "【官方解释】当目录中出现了 tsconfig.json 文件,则说明该目录是 TypeScript 项目的根目录。tsconfig.json 文件指定了编译项目所需的根目录下的文件以及编译选项。",
"compilerOptions": {
"target": "esnext",
"useDefineForClassFields": true,
"module": "esnext",
"moduleResolution": "node",
"strict": true,
"jsx": "preserve",
"baseUrl": ".",
"sourceMap": true,
"resolveJsonModule": true,
"isolatedModules": true,
"esModuleInterop": true,
"lib": ["esnext", "dom"],
"types": [
"vite/client"
],
"typeRoots": [
"./node_modules/@types/",
"./types"
],
"skipLibCheck": true,
"paths": {
"/@/*": [
"src/*"
],
"/#/*": [
"types/*"
]
}
},
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"],
"references": [{ "path": "./tsconfig.node.json" }],
"_about_references": "前端项目和后端node项目在同一目录下开发,两个项目依赖同一个配置文件,但我们希望前后端项目进行灵活的分别打包,那么我们可以配置references。"
}