Allow extending untranspiled classes (#8656)

This commit is contained in:
Nicolò Ribaudo
2020-03-16 23:59:15 +01:00
committed by GitHub
parent a875560c31
commit f6c7bf36ce
152 changed files with 1013 additions and 265 deletions

View File

@@ -1,6 +1,6 @@
{
"plugins": [
"external-helpers",
["external-helpers", { "helperVersion": "7.100.0" }],
"transform-classes",
"transform-block-scoping"
]

View File

@@ -3,6 +3,8 @@ var Foo = /*#__PURE__*/function (_Bar) {
babelHelpers.inherits(Foo, _Bar);
var _super = babelHelpers.createSuper(Foo);
function Foo() {
var _this;
@@ -10,7 +12,7 @@ var Foo = /*#__PURE__*/function (_Bar) {
var t = () => babelHelpers.get(babelHelpers.getPrototypeOf(Foo.prototype), "test", babelHelpers.assertThisInitialized(_this)).call(babelHelpers.assertThisInitialized(_this));
return _this = babelHelpers.possibleConstructorReturn(this, babelHelpers.getPrototypeOf(Foo).call(this));
return _this = _super.call(this);
}
return Foo;