fix exported classes with static class properties - fixes #2868
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
class Foo extends Bar {
|
||||
bar = "foo";
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
var Foo = (function (_Bar) {
|
||||
babelHelpers.inherits(Foo, _Bar);
|
||||
|
||||
function Foo() {
|
||||
babelHelpers.classCallCheck(this, Foo);
|
||||
|
||||
var _this = babelHelpers.possibleConstructorReturn(this, Object.getPrototypeOf(Foo).call(this));
|
||||
|
||||
_this.bar = "foo";
|
||||
return _this;
|
||||
}
|
||||
|
||||
return Foo;
|
||||
})(Bar);
|
||||
Reference in New Issue
Block a user