Lesson 2. Transpiling with Babel

When new features are added to JavaScript, the browsers always have to play a game of catch-up. It takes time after an update to JavaScript’s specification before all modern browsers have everything fully implemented and supported. In order to use all of the features covered in this book, you’ll make use of the technique covered in this lesson: transpiling.

2.1. What is transpiling?

Transpile is a portmanteau of the words translate and compile. Compilers typically compile a written programming language into incomprehensible[1] machine code. A transpiler is a special kind of compiler that translates from the source code of one programming language to the source code of another.

1

To a human, anyway.

2.1.1. ...

Get Get Programming with JavaScript Next: New features of ECMAScript 2015, 2016, and beyond now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.