- Building Enterprise JavaScript Applications
- Daniel Li
- 69字
- 2021-07-23 16:31:11
Different faces of Babel
Babel is a suite of tools—it is both a command-line tool, and a polyfill, and the packages are split up into many parts, such as @babel/cli, @babel/register, @babel/node, and @babel/core, all of which allow you to run ESNext code.
So first, let's understand what the different parts of Babel actually are, and how we can use Babel in our application.