UNPKG

@swc/helpers

Version:

External helpers for the swc project.

18 lines (15 loc) 417 B
"use strict"; 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; } exports._ = _export_star;