@sentry/utils
Version:
Utilities for all Sentry JavaScript SDKs
26 lines (23 loc) • 647 B
JavaScript
/**
* Wrap a module in an object, as the value under the key `default`.
*
* Adapted from Rollup (https://github.com/rollup/rollup)
*
* @param requireResult The result of calling `require` on a module
* @returns An object containing the key-value pair (`default`, `requireResult`)
*/
function _interopNamespaceDefaultOnly(requireResult) {
return {
__proto__: null,
default: requireResult,
};
}
// Rollup version
// function _interopNamespaceDefaultOnly(e) {
// return {
// __proto__: null,
// 'default': e
// };
// }
export { _interopNamespaceDefaultOnly };
//# sourceMappingURL=_interopNamespaceDefaultOnly.js.map