interopRequireWildcard.js 360 B

1234567891011121314151617181920
  1. "use strict";
  2. exports.__esModule = true;
  3. exports.default = function (obj) {
  4. if (obj && obj.__esModule) {
  5. return obj;
  6. } else {
  7. var newObj = {};
  8. if (obj != null) {
  9. for (var key in obj) {
  10. if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];
  11. }
  12. }
  13. newObj.default = obj;
  14. return newObj;
  15. }
  16. };