what is the purpose of tsconfig.json?

后端 未结 5 1790
情歌与酒
情歌与酒 2020-12-13 12:54

I was reading angular2 referrences and found this tsconfig.json. I would like to know what the following parameters mean?

{
    \"compilerOption         


        
5条回答
  •  误落风尘
    2020-12-13 13:17

    Already there are lot of answers, but I would like to add one more point as why tsconfig required. As per angular docs

    TypeScript is a primary language for Angular application development. It is a superset of JavaScript with design-time support for type safety and tooling.

    Browsers can't execute TypeScript directly. Typescript must be "transpiled" into JavaScript using the tsc compiler, which requires some configuration.

    Typically, you add a TypeScript configuration file called tsconfig.json to your project to guide the compiler as it generates JavaScript files.

    For more information https://angular.io/guide/typescript-configuration

提交回复
热议问题