-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
41 lines (41 loc) · 1.12 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
37
38
39
40
41
{
"compilerOptions": {
// 目标代码(ts => js)
"target": "esnext",
// 需要使用的模块方案(commonjs/es module)
"module": "esnext",
// 严格模式
"strict": true,
// 对jsx进行怎么样的处理
"jsx": "preserve",
// 辅助的导入功能
"importHelpers": true,
// 按照node的方式去解析模块
"moduleResolution": "node",
// 跳过一些库的类型检测
"skipLibCheck": true,
// es module 和 commonjs 是否可以一起使用
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
// 要不要生成映射文件
"sourceMap": true,
// 文件路径再解析时
"baseUrl": ".",
// 指定具体要解析使用的类型
"types": ["webpack-env"],
// 路径解析
"paths": {
"@/*": ["src/*"]
},
// 可以指定在项目中可以使用哪里库的类型(Proxy/Window/Document)
"lib": ["esnext", "dom", "dom.iterable", "scripthost"]
},
"include": [
"src/**/*.ts",
"src/**/*.tsx",
"src/**/*.vue",
"tests/**/*.ts",
"tests/**/*.tsx"
],
"exclude": ["node_modules"]
}