Unfortunately, I need to deal with IE8 compatibility nightmares and after few hours of fixing troubles one after another I'm in a dead-end, hope someone can help me.
Babel
implements inheritance thru this method:
function _inherits(subClass, superClass) {
if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
subClass.prototype = Object.create(superClass && superClass.prototype, {
constructor: {
value: subClass,
enumerable: !1,
writable: !0,
configurable: !0
}
}), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass);
}
When I run this code on IE8 I'm getting this error: Object doesn't support this property or method
that refers to the usage of Object.create
I tried to look for a plugin and different settings of Babel but couldn't find something that actually solve it.
Do someone know how to handle it?