umijs / umi-request

A request tool based on fetch.
2.2k stars 336 forks source link

@1.3.5 不兼容 ie10,“引发了异常但未捕获” #197

Closed zekunruan closed 3 years ago

zekunruan commented 3 years ago

版本:1.3.5 环境:ie10/node@12.16.2

构建产物 index.es.js 279 行处抛错: ` function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { // 此处抛错 throw new TypeError("Super expression must either be null or a function"); }

subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) setPrototypeOf(subClass, superClass); } `

请问目前处理了兼容 ie10 吗?参考 https://github.com/babel/babel/issues/7892

zekunruan commented 3 years ago

添加ie下 proto 垫片解决