DEV Community


Transpiling in Angular

ummeq profile image Umme Q ・1 min read

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

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.


Editor guide