_export_star.js 442 B

12345678910111213141516
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = _exportStar;
  6. function _exportStar(from, to) {
  7. Object.keys(from).forEach(function(k) {
  8. if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) Object.defineProperty(to, k, {
  9. enumerable: true,
  10. get: function() {
  11. return from[k];
  12. }
  13. });
  14. });
  15. return from;
  16. }