Skip to content

Commit 9e87bf9

Browse files
authored
fix(tracing): Export BrowserTracing directly in CDN bundle (#4570)
When we made the changes in #4204 (to export `BrowserTracing` directly rather than as part of `Sentry.Integrations`), we didn't make the change in the tracing CDN bundle. While It's true that there's no bundle size issue there (mongo and friends never were getting included in the CDN bundle, so there was nothing to fix), it did mean that when we changed the docs to match the above PR's changes, we ended up breaking CDN folks' usage of `BrowserTracing`. This fixes that by making the same change in the tracing CDN bundle as was made for the npm package. Fixes getsentry/sentry-docs#4722.
1 parent 2a150ee commit 9e87bf9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/tracing/src/index.bundle.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@ const INTEGRATIONS = {
7575
};
7676

7777
export { INTEGRATIONS as Integrations };
78+
// Though in this case exporting this separately in addition to exporting it as part of `Sentry.Integrations` doesn't
79+
// gain us any bundle size advantage (we're making the bundle here, not the user, and we can't leave anything out of
80+
// ours), it does bring the API for using the integration in line with that recommended for users bundling Sentry
81+
// themselves.
82+
export { BrowserTracing };
7883

7984
// We are patching the global object with our hub extension methods
8085
addExtensionMethods();

0 commit comments

Comments
 (0)