-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathtsconfig.json
56 lines (56 loc) · 1.54 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{
"compilerOptions": {
"module": "ESNext", // 打包模块类型ESNext
"moduleResolution": "node", // 按照node模块来解析
"removeComments": true, // 删除注释
"target": "ESNext", // 目标语言
"useDefineForClassFields": true, // 使用defineProperty来定义类的属性
"sourceMap": true,
"allowSyntheticDefaultImports": true, // 允许没有导出的模块中导入
"experimentalDecorators": true, // 装饰器语法
"forceConsistentCasingInFileNames": true, // 强制区分大小写
"resolveJsonModule": true, // 解析json模块
"strict": true, // 是否启动严格模式
"skipLibCheck": true, // 跳过类库检测
"allowJs": true, // 允许 JavaScript 文件在你的工程中被引入
"isolatedModules": true, // 将每个文件做为单独的模块
"esModuleInterop": true, // 允许使用ES模块的默认导入和命名空间导入
"declaration": true,
"baseUrl": ".",
"lib": [
"ESNext",
"DOM"
], // 编译过程中需要引入的库文件的列表
"typeRoots": [
"node_modules/@types",
"@types"
] // 声明文件路径
},
"exclude": [
// 排除掉哪些类库
"node_modules",
"**/__tests__",
"dist/**",
"play",
"docs",
"build"
],
"types": [
// 类型声明
"node",
"vue",
"vite/client"
],
"paths": {
"*": [
"node_modules/*",
"node_modules/@types/*"
],
},
"include": [
"packages/**/*.ts",
"packages/**/*.d.ts",
"packages/**/*.vue",
"docs/**/*.vue"
]
}