From 54dd027d5731815f31c1a0e1dfa045c9050ae212 Mon Sep 17 00:00:00 2001 From: Katie Byers Date: Mon, 14 Feb 2022 11:12:29 -0800 Subject: [PATCH] export browsertracing directly in CDN bundle --- packages/tracing/src/index.bundle.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/tracing/src/index.bundle.ts b/packages/tracing/src/index.bundle.ts index 5add5919fcc6..3349dfbd06da 100644 --- a/packages/tracing/src/index.bundle.ts +++ b/packages/tracing/src/index.bundle.ts @@ -75,6 +75,11 @@ const INTEGRATIONS = { }; export { INTEGRATIONS as Integrations }; +// Though in this case exporting this separately in addition to exporting it as part of `Sentry.Integrations` doesn't +// gain us any bundle size advantage (we're making the bundle here, not the user, and we can't leave anything out of +// ours), it does bring the API for using the integration in line with that recommended for users bundling Sentry +// themselves. +export { BrowserTracing }; // We are patching the global object with our hub extension methods addExtensionMethods();