Debian Codegraph @

packages/babel-plugin-transform-runtime/test/fixtures/use-options/corejs-useES6Modules/output.mjs

raw
1 import _Reflect$construct from "@babel/runtime-corejs2/core-js/reflect/construct";
2 import _createClass from "@babel/runtime-corejs2/helpers/esm/createClass";
3 import _classCallCheck from "@babel/runtime-corejs2/helpers/esm/classCallCheck";
4 import _inherits from "@babel/runtime-corejs2/helpers/esm/inherits";
5 import _possibleConstructorReturn from "@babel/runtime-corejs2/helpers/esm/possibleConstructorReturn";
6 import _getPrototypeOf from "@babel/runtime-corejs2/helpers/esm/getPrototypeOf";
7 function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
8 function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
9 let Foo = /*#__PURE__*/function (_Bar) {
10 _inherits(Foo, _Bar);
11 var _super = _createSuper(Foo);
12 function Foo() {
13 _classCallCheck(this, Foo);
14 return _super.apply(this, arguments);
15 }
16 return _createClass(Foo);
17 }(Bar);