1、首先安装:babel-polyfill npm install babel-polyfill --save
2、然后引入:babel-polyfill import "babel-polyfill";
在build目录下,webpack.base.conf.js里
entry: {
app: ["babel-polyfill", "./src/main.js"]
},
1、首先安装:babel-polyfill npm install babel-polyfill --save
2、然后引入:babel-polyfill import "babel-polyfill";
在build目录下,webpack.base.conf.js里
entry: {
app: ["babel-polyfill", "./src/main.js"]
},