securityos/node_modules/@swc/helpers/cjs/_export_star.cjs

18 lines
440 B
JavaScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
"use strict";
exports._ = exports._export_star = _export_star;
function _export_star(from, to) {
Object.keys(from).forEach(function(k) {
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
Object.defineProperty(to, k, {
enumerable: true,
get: function() {
return from[k];
}
});
}
});
return from;
}