@sentry/nextjs
Version:
Official Sentry SDK for Next.js
22 lines (20 loc) • 551 B
JavaScript
const __sentry__timeOrigin = Date.now();
if (typeof globalThis !== "undefined" && globalThis.performance === void 0) {
globalThis.performance = {
timeOrigin: __sentry__timeOrigin,
now: function() {
return Date.now() - __sentry__timeOrigin;
}
};
}
const performance = globalThis.performance || {
timeOrigin: __sentry__timeOrigin,
now: function() {
return Date.now() - __sentry__timeOrigin;
}
};
const perf_hooks = {
performance
};
export { perf_hooks as default, performance };
//# sourceMappingURL=perf_hooks.js.map