UNPKG

@sentry/utils

Version:
21 lines (18 loc) 738 B
/** * Copy a property from the given object into `exports`, under the given name. * * Adapted from Sucrase (https://github.com/alangpierce/sucrase) * * @param obj The object containing the property to copy. * @param localName The name under which to export the property * @param importedName The name under which the property lives in `obj` */ function _createNamedExportFrom(obj, localName, importedName) { exports[localName] = obj[importedName]; } // Sucrase version: // function _createNamedExportFrom(obj, localName, importedName) { // Object.defineProperty(exports, localName, {enumerable: true, get: () => obj[importedName]}); // } export { _createNamedExportFrom }; //# sourceMappingURL=_createNamedExportFrom.js.map