nuxt used in the project import support

First, the global installed: npm install -g babel-cli

Then install: npm i babel-preset-es2015 --save-dev (but officials have not recommended)

而是npm i babel-preset-env --save-dev

Then go to configure babelrc

Finally packjson also in the configuration

Specifically: https://blog.csdn.net/Fabulous1111/article/details/85963986

Guess you like

Origin blog.csdn.net/memedadexixaofeifei/article/details/88370740