18 lines
440 B
JavaScript
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;
|
|
}
|