代码拉取完成,页面将自动刷新
{
"compilerOptions": {
/* Visit https://aka.ms/tsconfig to read more about this file */
"outDir": "./dist",
"rootDir": "./src", // 源文件目录
"removeComments": true, // 删除注释
/* Language and Environment */
"target": "es2016" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
/* Modules */
"module": "commonjs" /* Specify what module code is generated. */,
"esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */,
"preserveSymlinks": true /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */,
"forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */,
/* Type Checking */
"strict": true /* Enable all strict type-checking options. */,
/* Skip type checking .d.ts files that are included with TypeScript. */
"skipLibCheck": true /* Skip type checking all .d.ts files. */,
"typeRoots": [
"./node_modules/@types",
"src/@types" // 这里假设你有个自定义类型定义目录
]
// "target": "ESNext", // 目标版本
// "module": "ESNext", // 设置为ES模块
// "moduleResolution": "Node", // 使用Node方式解析模块
// "esModuleInterop": true // 允许ES模块和CommonJS之间的互操作
},
"include": [
"src/**/*" // 包含src目录下的所有文件
],
"exclude": [
"node_modules",
"**/*.spec.ts" // 排除测试文件
]
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。