DEV Community

Umme Q
Umme Q

Posted on

Transpiling in Angular

1.Transpiling code is a similar concept to the compilation process, with one big difference.

•Compiling: code from a high level language is get converted to machine level language.
•Transpiling: code from a high level language gets converted to another high level language.

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

TypeScript----->Transpile----->JavaScript
Command----->tsc filename.ts

3.Three two files for TypeScript Configuration.
•tsconfig.json—TypeScript compiler configuration.
•typings—TypesScript declaration files.

4.Will add TypeScript configuration file called tsconfig.json to o project to guide the compiler as it generates JavaScript files.

Top comments (0)