-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
38 lines (38 loc) · 1.17 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
// https://www.typescriptlang.org/docs/handbook/compiler-options.html#compiler-options
{
"compilerOptions": {
// Specify ECMAScript target version
"target": "es5",
// Specify module code generation: "None", "CommonJS", "AMD", "System", "UMD", "ES6", "ES2015" or "ESNext".
"module": "esnext",
// 严格模式
"strict": true,
// Support JSX in .tsx files: "react", "preserve", "react-native". See JSX.
"jsx": "preserve",
// Import emit helpers
"importHelpers": true,
// esmodule classic node 模块机制
"moduleResolution": "node",
// 装饰器 实验性质
"experimentalDecorators": true,
// 允许 没有默认导出 export default
"allowSyntheticDefaultImports": true,
// 生成.map
"sourceMap": true,
"baseUrl": ".",
"typeRoots": ["./src/shims-vue.d"],
"types": ["node", "jest", "webpack-env"],
"paths": {
"@/*": ["src/*"]
},
"lib": ["es2015", "es2016", "es2017", "dom", "dom.iterable", "scripthost"]
},
"include": [
"./src/**/*.ts",
"./src/**/*.tsx",
"./src/**/*.vue",
"./tests/**/*.ts",
"./tests/**/*.tsx"
],
"exclude": ["node_modules", "build", "*.scss"]
}