-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.json
More file actions
28 lines (28 loc) · 1.29 KB
/
tsconfig.json
File metadata and controls
28 lines (28 loc) · 1.29 KB
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
{
"compilerOptions": {
/* Visit https://aka.ms/tsconfig to read more about this file */
"target": "es5" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
"lib": ["dom", "dom.iterable", "esnext"],
"baseUrl": ".",
"paths": {
"@/*": ["src/*"]
},
"outDir": "dist/" /* Redirect output structure to the directory. */,
// "sourceMap": true,
"declaration": true,
"declarationDir": "dist/types/",// 声明文件打包的位置
"declarationMap": false,// 是否生成声明文件map文件(便于调试)
"allowJs": true,
"jsx": "preserve" /* Specify what JSX code is generated. */,
"module": "esnext" /* Specify what module code is generated. */,
"moduleResolution": "node",
"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. */,
"noImplicitAny": false,
"strict": true /* Enable all strict type-checking options. */,
"skipLibCheck": true
},
// "include": ["src/*", "src/**/*", "demo/*"], //dev
"include": ["src"], //prod
"exclude": ["node_modules", "dist"]
}