微软爸爸都把IE干掉了,还有客户在用,木得办法啊
babel-polyfill
npm install --save babel-polyfill
main.js
import 'babel-polyfill'
config
webpack.base.conf.js
es6-promise
axios
npm install --save es6-promise
import 'es6-promise/auto'
element-ui
将element-ui组件的resolve进来
{ test: /\.js$/, loader: 'babel-loader', include: [resolve('src'), resolve('test'), resolve('node_modules/webpack-dev-server/client'),resolve('/node_modules/element-ui/src'),resolve('/node_modules/element-ui/packages')] },
转载:https://www.cnblogs.com/wangyang0210/p/13864749.html