UNPKG

@babel/runtime-corejs2

Version:

babel's modular runtime helpers with core-js@2 polyfilling

25 lines 1.25 kB
var _typeof = require("./typeof.js")["default"]; var _WeakMap = require("core-js/library/fn/weak-map.js"); var _Object$defineProperty = require("core-js/library/fn/object/define-property.js"); var _Object$getOwnPropertyDescriptor = require("core-js/library/fn/object/get-own-property-descriptor.js"); function _interopRequireWildcard(e, t) { if ("function" == typeof _WeakMap) var r = new _WeakMap(), n = new _WeakMap(); return (module.exports = _interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = _Object$defineProperty) && _Object$getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; }, module.exports.__esModule = true, module.exports["default"] = module.exports)(e, t); } module.exports = _interopRequireWildcard, module.exports.__esModule = true, module.exports["default"] = module.exports;