{
"compilerOptions": {
/* Visit https://aka.ms/tsconfig to read more about this file */
/* Projects */
// TS编译器在第一次编译之后会生成一个存储编译信息的文件,第二次编译会在第一次的基础上进行增量编译,可以提高编译的速度
// "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */
// 启用允许TS项目与项目引用一起使用的约束
// "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */
// 增量编译文件的存储位置
// "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */
// 在引用组合项目时,禁用首选源文件而不是声明文件
// "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */
// 编译时从多项目引用检查中选择一个项目
// "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */
// 减少TS自动加载的项目数量
// "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
/* Language and Environment */
// TS需要引用的库,即声明文件,es5默认引用dom
"target": "es2016" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
// 指定生成的JSX代码
// "jsx": "preserve", /* Specify what JSX code is generated. */
// 启用对TC39第二阶段draft装饰器的实验支持
"experimentalDecorators": true /* Enable experimental support for TC39 stage 2 draft decorators. */,
// 为源文件中的修饰声明发出设计类型元数据
// "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
// "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or
tsconfig.json文件参数说明
最新推荐文章于 2023-03-30 18:08:28 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)