-
Notifications
You must be signed in to change notification settings - Fork 4
/
tsconfig.json
21 lines (21 loc) · 1.11 KB
/
tsconfig.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{
"compilerOptions": {
"target": "ES2016" /* 编译结果使用的版本标准: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */,
"module": "commonjs" /* 编译结果使用的模块化标准: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */,
"lib": [
"ESNext",
"DOM"
] /* 在写ts的时候支持的环境,默认是浏览器环境。如需要支持node,安装@type/node */,
"jsx": "react" /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */,
"sourceMap": true,
"strict": true,
"declaration": true,
"removeComments": true /* 编译结果把ts的注释移除掉 */,
"esModuleInterop": true /* es6的模块化和非es6的模块化标准互通 */,
"allowSyntheticDefaultImports": true,
"baseUrl": "./",
"moduleResolution": "node"
},
"exclude": ["dist", "lib", "node_modules"], // 这里需要排除掉 dist 目录和 node_modules 目录,不进行检查
"include": ["core/**/*.ts", "core/**/*.tsx", "core/**/*.d.ts"]
}