Yes, the output is uglier. But, this is necessary for me to refactor `replaceSupers` for #7733, which is necessary for both #7555 and https://github.com/babel/babel/pull/7553#issuecomment-381434519. I'm still in the middle of cleaning up all this code. Don't expect `transformClass` to survive much longer as it's written currently.
20 lines
421 B
JavaScript
20 lines
421 B
JavaScript
var Foo =
|
|
/*#__PURE__*/
|
|
function (_Bar) {
|
|
"use strict";
|
|
|
|
function Foo() {
|
|
var _this;
|
|
|
|
babelHelpers.classCallCheck(this, Foo);
|
|
|
|
var fn = () => babelHelpers.assertThisInitialized(babelHelpers.assertThisInitialized(_this));
|
|
|
|
fn();
|
|
return _this = babelHelpers.possibleConstructorReturn(this, babelHelpers.getPrototypeOf(Foo).call(this));
|
|
}
|
|
|
|
babelHelpers.inherits(Foo, _Bar);
|
|
return Foo;
|
|
}(Bar);
|