From 4890a9361357def064ec757735236b5d8c29443c Mon Sep 17 00:00:00 2001 From: Francesco Novy Date: Wed, 22 May 2024 11:15:15 +0200 Subject: [PATCH] feat(browser): Ensure `browserProfilingIntegration` is published to CDN --- packages/browser/rollup.bundle.config.mjs | 2 +- packages/browser/src/integrations/browserprofiling.ts | 1 + packages/browser/src/utils/lazyLoadIntegration.ts | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 packages/browser/src/integrations/browserprofiling.ts diff --git a/packages/browser/rollup.bundle.config.mjs b/packages/browser/rollup.bundle.config.mjs index 16c769582050..278b9cdc1b87 100644 --- a/packages/browser/rollup.bundle.config.mjs +++ b/packages/browser/rollup.bundle.config.mjs @@ -2,7 +2,7 @@ import { makeBaseBundleConfig, makeBundleConfigVariants } from '@sentry-internal const builds = []; -const browserPluggableIntegrationFiles = ['contextlines', 'httpclient', 'reportingobserver']; +const browserPluggableIntegrationFiles = ['contextlines', 'httpclient', 'reportingobserver', 'browserprofiling']; const corePluggableIntegrationFiles = [ 'captureconsole', diff --git a/packages/browser/src/integrations/browserprofiling.ts b/packages/browser/src/integrations/browserprofiling.ts new file mode 100644 index 000000000000..9a6212337f2e --- /dev/null +++ b/packages/browser/src/integrations/browserprofiling.ts @@ -0,0 +1 @@ +export { browserProfilingIntegration } from '../profiling/integration'; diff --git a/packages/browser/src/utils/lazyLoadIntegration.ts b/packages/browser/src/utils/lazyLoadIntegration.ts index f8d12abd93c0..c09bdfa45eae 100644 --- a/packages/browser/src/utils/lazyLoadIntegration.ts +++ b/packages/browser/src/utils/lazyLoadIntegration.ts @@ -20,6 +20,7 @@ const LazyLoadableIntegrations = { reportingObserverIntegration: 'reportingobserver', rewriteFramesIntegration: 'rewriteframes', sessionTimingIntegration: 'sessiontiming', + browserProfilingIntegration: 'browserprofiling', } as const; const WindowWithMaybeIntegration = WINDOW as {