This video is available to students only

What's transpilation.

You may have heard the term transpilation before, but just to be sure that everyone is on the same page I'll explain what it is and why it's needed.

Transpilation is a process of transforming one code into another code, mostly human-readable code in one version of a language into another version or another language. Many people prefer using the word "compile", which is also correct, but let's stick to "transpilation" for this lesson.

Examples of use cases for transpilation would be:

  • from one programming language into equivalent code in another programming language

  • from older versions to newer version of a language - for example a transpiler that supports Python could transpile code from Python 2 into Python 3

  • from modern syntax towards an older version of syntax for backward compatibility

  • refactorings, migrations etc can be automated in some cases when you have a proper transpiler at hand

So what are the common examples of transpilers in the JavaScript ecosystem?

Start a new discussion. All notification go to the author.