-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathtsconfig.json
28 lines (28 loc) · 1.32 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
{
"include": ["**/*.ts", "**/*.tsx", "**/*.d.ts", "modern.config.js"],
"compilerOptions": {
"typeRoots": ["./node_modules/@types."],
"isolatedModules": false,
"jsx": "react",
"outDir": "esm",
"target": "es2016" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
"module": "ESNext" /* Specify what module code is generated. */,
"moduleResolution": "node" /* Specify how TypeScript looks up a file from a given module specifier. */,
"baseUrl": "." /* Specify the base directory to resolve non-relative module names. */,
"paths": {
"@/*": ["package/browser/*"],
"@type": ["./src/types"]
},
"removeComments": true, // 是否移除注释
"declaration": true,
"esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */,
"forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */,
"strict": true,
"experimentalDecorators": true,
"alwaysStrict": false, // 以严格模式解析并为每个源文件生成 "use strict"语句
"skipLibCheck": false /* Skip type checking all .d.ts files. */
},
"rootDir": ".",
"baseUrl": ".",
"exclude": ["node_modules", "dist"]
}