5

I would like to know what a transpiler is and what it actually does?

saw303
  • 8,051
  • 7
  • 50
  • 90

2 Answers2

5

it is source-to-source compilers, are tools that read source code written in one programming language, and produce the equivalent code in another language.

Languages you write that transpile to JavaScript are often called compile-to-JS languages, and are said to target JavaScript.

They read CoffeeScript, TypeScript, and ES2015, and spit out JavaScript guaranteed to work anywhere

Try to read this link it is good

saw303
  • 8,051
  • 7
  • 50
  • 90
iamsankalp89
  • 4,607
  • 2
  • 15
  • 36
0

Transpiler is a source to source compiler which converts code of one programming language to another programming language.Eventually we can defined the compiler which offer us target source code. for example: if we talk about angular(specifically angular 6) which supports typescript but browser doesn't support hence transpiler comes into picture which convert typescript to javascript which can be understood by browser.

swap
  • 11