Allow extending untranspiled classes (#8656)
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
function _createSuper(Derived) { return function () { var Super = babelHelpers.getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = babelHelpers.getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return babelHelpers.possibleConstructorReturn(this, result); }; }
|
||||
|
||||
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
||||
|
||||
var _ref = /*#__PURE__*/<div className="navbar-header">
|
||||
<a className="navbar-brand" href="/">
|
||||
<img src="/img/logo/logo-96x36.png" />
|
||||
@@ -9,9 +13,11 @@ let App = /*#__PURE__*/function (_React$Component) {
|
||||
|
||||
babelHelpers.inherits(App, _React$Component);
|
||||
|
||||
var _super = _createSuper(App);
|
||||
|
||||
function App() {
|
||||
babelHelpers.classCallCheck(this, App);
|
||||
return babelHelpers.possibleConstructorReturn(this, babelHelpers.getPrototypeOf(App).apply(this, arguments));
|
||||
return _super.apply(this, arguments);
|
||||
}
|
||||
|
||||
babelHelpers.createClass(App, [{
|
||||
|
||||
Reference in New Issue
Block a user