Put in order · JavaScript and React course · Module 1: React Basics

Babel transpilation process

Arrange the stages of code transpilation by Babel from top to bottom:

Items to put in order

  • Babel transforms AST using plugins and presets
  • Writing code in modern JavaScript (ES6+) and JSX
  • Generating JavaScript code compatible with older browsers
  • Babel parses code into AST (Abstract Syntax Tree)
Show the answer

Correct order:

  1. Writing code in modern JavaScript (ES6+) and JSX
  2. Babel parses code into AST (Abstract Syntax Tree)
  3. Babel transforms AST using plugins and presets
  4. Generating JavaScript code compatible with older browsers