interopRequireDefault.js 650 B

12345678910111213141516171819202122
  1. 'use strict';
  2. Object.defineProperty(exports, '__esModule', {
  3. value: true
  4. });
  5. exports.default = interopRequireDefault;
  6. /**
  7. * Copyright (c) Meta Platforms, Inc. and affiliates.
  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. // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
  14. function interopRequireDefault(obj) {
  15. return obj && obj.__esModule
  16. ? obj
  17. : {
  18. default: obj
  19. };
  20. }