You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
{
"compilerOptions" : {
// 指定模块代码生成的方式。"commonjs"是Node.js环境下的默认模块系统。
"module" : "commonjs" ,
// 设置编译后的JavaScript代码的目标ECMAScript版本。"es5"确保代码可以在大多数浏览器和环境中运行。
"target" : "es5" ,
// 启用源映射( source map) 生成。这有助于调试, 因为它允许你在原始TypeScript代码而不是编译后的JavaScript中设置断点。
"sourceMap" : true ,
// 忽略所有声明文件(.d.ts) 中的类型检查。这可以加速编译过程, 但可能会隐藏一些潜在的问题。
"skipLibCheck" : true
} ,
// 指定应被编译器排除在外的目录或文件。通常会排除node_modules, 因为这些是第三方库, 不需要进行TypeScript编译。
"exclude" : [
"node_modules"
] ,
// 明确指出应该包含在编译中的特定文件。只有这些文件将被编译,除非它们通过导入被其他文件间接引用。
"include" : [
// 包含组件的声明文件, 帮助TypeScript理解组件的结构和类型。
"src/auto-import/components.d.ts" ,
// 包含自动导入项的声明文件, 帮助TypeScript识别那些应该自动引入的模块或变量。
"src/auto-import/imports.d.ts"
]
}