-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.app.json
48 lines (48 loc) · 1.15 KB
/
tsconfig.app.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
39
40
41
42
43
44
45
46
47
48
{
"compilerOptions": {
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
"target": "ES2020",
"useDefineForClassFields": true,
"module": "ESNext",
"lib": [
"ES2020",
"DOM",
"DOM.Iterable"
],
"skipLibCheck": true,
/* Bundler mode */
"moduleResolution": "bundler",
"isolatedModules": true,
"moduleDetection": "force",
"jsx": "preserve",
/* Linting */
"strict": true,
"noUnusedLocals": false,
"noUnusedParameters": false,
"noFallthroughCasesInSwitch": true,
"noUncheckedSideEffectImports": true,
//配置生成.d.ts打包
"declaration": true,
//配置允许ts后缀导入
"allowImportingTsExtensions": true,
// 配置仅仅生成声明文件
"emitDeclarationOnly": true,
// 配置生成声明文件映射
"declarationMap": true,
// 配置输出目录
"outDir": "./dist",
// 配置输入目录
"rootDir": "./src"
},
//指定要生成声明文件的ts文件
"include": [
"src/bridge/**/*.ts",
"src/index.ts"
],
// 排除的文件
"exclude": [
"node_modules",
"vite.config.ts",
"src/main.ts"
]
}