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:
Please execute the following code:
npm install --save @babel/runtime-corejs2
暂无评论。