-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
38 lines (38 loc) · 1.1 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
{
"compilerOptions": {
"target": "ESNext", // 遵循es6版本
"module": "ESNext", // 打包模块类型ESNext
"declaration": false, // 默认不要声明⽂件
"removeComments": true, // 删除注释
"importHelpers": true,
"moduleResolution": "node", // 按照node模块来解析
"esModuleInterop": true, // ⽀持es6,commonjs模块
"jsx": "preserve", // jsx
"sourceMap": false,
"noImplicitAny": true,
"allowSyntheticDefaultImports": true, // 允许没有导出的模块中导⼊
"experimentalDecorators": true, // 装饰器语法
"resolveJsonModule": true, // 解析json模块
"strict": true, // 是否启动严格模式
"skipLibCheck": true, // 跳过类库检测
"lib": [
// 编译时⽤的库
"ESNext",
"DOM"
],
"types": ["node", "vite/client"], // sfc 添加 name属性的包需要的
"paths": {
"zeal-ui": ["./components"]
}
},
// "include": [
// "packages/**/*.*",
// "packages/docs",
// "play",
// "types"],
"exclude": [
// 排除掉哪些类库
"node_modules",
"dist/**"
]
}