ie11 fetch兼容

1.安装兼容包:

npm install whatwg-fetch --save

2.webpack配置:

entry: {
    app: [ 'babel-polyfill', 'whatwg-fetch', path.resolve(app, 'index.js')],
  },

参考链接

你可能感兴趣的:(ie11 fetch兼容)