Installation: polyfill
npm install --save babel-polyfill
Js file in the entrance of the project: import "babel-polyfill"
Webpack.base.conf.js modify the entry configuration
entry: {
app: ['babel-polyfill','./src/main.js']
},
Re: npm run dev