@sentry/node
Version:
Sentry Node SDK using OpenTelemetry for performance instrumentation
15 lines (14 loc) • 609 B
JavaScript
import { consoleSandbox, defineIntegration, isBrowser } from "@sentry/core";
// src/integrations/featureFlagShims/unleash.ts
/**
* This is a shim for the Unleash integration.
* We need this in order to not throw runtime errors when accidentally importing this on the server through a meta framework like Next.js.
*/
const unleashIntegrationShim = defineIntegration((_options) => {
if (!isBrowser()) consoleSandbox(() => {
console.warn("The unleashIntegration() can only be used in the browser.");
});
return { name: "Unleash" };
});
export { unleashIntegrationShim };
//# sourceMappingURL=unleash.js.map