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

18 lines
440 B
JavaScript

"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;
}