Closed zekunruan closed 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
添加ie下 proto 垫片解决
版本: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