上QQ阅读APP看书,第一时间看更新
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.