interopRequireDefault.js 591 B

123456789101112131415161718192021
  1. 'use strict';
  2. Object.defineProperty(exports, '__esModule', {
  3. value: true
  4. });
  5. exports.default = interopRequireDefault;
  6. /**
  7. * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
  8. *
  9. * This source code is licensed under the MIT license found in the
  10. * LICENSE file in the root directory of this source tree.
  11. */
  12. // copied from https://github.com/babel/babel/blob/56044c7851d583d498f919e9546caddf8f80a72f/packages/babel-helpers/src/helpers.js#L558-L562
  13. function interopRequireDefault(obj) {
  14. return obj && obj.__esModule
  15. ? obj
  16. : {
  17. default: obj
  18. };
  19. }