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:
- Writing code in modern JavaScript (ES6+) and JSX
- Babel parses code into AST (Abstract Syntax Tree)
- Babel transforms AST using plugins and presets
- Generating JavaScript code compatible with older browsers