Upgrade Babel 7+

To upgrade Babel 7, the official team provides a toolbabel-upgrade, for existing projects, just run a single command to upgrade to version 7 and above.

Run the command:npm babel-upgrade --write --install 


An installation warning appears as follows:

Error Please execute the following code:
npm install --save @babel/runtime-corejs2


评论

暂无评论。

登录后可发表评论。