Skip to content

Commit d8101c0

Browse files
committed
ref(tracing): Make integrations tree shakeable
1 parent af0e436 commit d8101c0

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

packages/nextjs/src/index.client.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { configureScope, init as reactInit, Integrations as BrowserIntegrations } from '@sentry/react';
2-
import { defaultRequestInstrumentationOptions, Integrations as TracingIntegrations } from '@sentry/tracing';
2+
import { BrowserTracing, defaultRequestInstrumentationOptions } from '@sentry/tracing';
33

44
import { nextRouterInstrumentation } from './performance/client';
55
import { MetadataBuilder } from './utils/metadataBuilder';
@@ -9,7 +9,6 @@ import { addIntegration, UserIntegrations } from './utils/userIntegrations';
99
export * from '@sentry/react';
1010
export { nextRouterInstrumentation } from './performance/client';
1111

12-
const { BrowserTracing } = TracingIntegrations;
1312
export const Integrations = { ...BrowserIntegrations, BrowserTracing };
1413

1514
/** Inits the Sentry NextJS SDK on the browser with the React SDK. */

packages/tracing/src/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import { BrowserTracing } from './browser';
21
import { addExtensionMethods } from './hubextensions';
3-
import * as TracingIntegrations from './integrations';
4-
5-
const Integrations = { ...TracingIntegrations, BrowserTracing };
2+
import * as Integrations from './integrationsbundle';
63

74
export { Integrations };
5+
6+
export { BrowserTracing } from './browser';
7+
88
export { Span } from './span';
99
export { Transaction } from './transaction';
1010
export {
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export * from './integrations';
2+
export { BrowserTracing } from './browser';

0 commit comments

Comments
 (0)