tsconfig.json configuration file description

官方链接:TypeScript: Documentation - What is a tsconfig.jsonicon-default.png?t=M4ADhttps://www.typescriptlang.org/docs/handbook/tsconfig-json.html

The presence of files in a directory tsconfig.jsonindicates that this directory is the root of a TypeScript project. This tsconfig.jsonfile specifies the root files and compiler options required to compile the project.

A JavaScript project can use jsconfig.jsona file instead, which does pretty much the same thing, but enables some JavaScript-related compiler flags by default.

typescript 项目会通过 tsconfig.json call tsc

If you are too lazy to write a configuration file, you can download the specified configuration and use the extends attribute

The current configuration files provided by the community are

Reference link:

https://github.com/tsconfig/bases/icon-default.png?t=M4ADhttps://github.com/tsconfig/bases/

Root property configuration reference link

TypeScript: TSConfig Reference - Docs on every TSConfig optionicon-default.png?t=M4ADhttps://www.typescriptlang.org/tsconfig#files

 

Guess you like

Origin blog.csdn.net/weixin_42335036/article/details/124979210