Skip to content

Commit 7ea1e78

Browse files
committed
fixup! fixup! fixup! feat(core): split exports by browser/server for bundle size
1 parent 5b7c0f3 commit 7ea1e78

8 files changed

Lines changed: 12 additions & 10 deletions

File tree

packages/integration-shims/src/BrowserTracing.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { consoleSandbox, defineIntegration } from '@sentry/core';
1+
import { consoleSandbox, defineIntegration } from '@sentry/core/browser';
22

33
/**
44
* This is a shim for the BrowserTracing integration.

packages/integration-shims/src/ElementTiming.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { consoleSandbox, defineIntegration } from '@sentry/core';
1+
import { consoleSandbox, defineIntegration } from '@sentry/core/browser';
22

33
/**
44
* This is a shim for the ElementTiming integration.

packages/integration-shims/src/Feedback.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import type { Integration } from '@sentry/core';
2-
import { consoleSandbox } from '@sentry/core';
1+
import type { Integration } from '@sentry/core/browser';
2+
import { consoleSandbox } from '@sentry/core/browser';
33
import { FAKE_FUNCTION } from './common';
44

55
const FEEDBACK_INTEGRATION_METHODS = ['attachTo', 'createForm', 'createWidget', 'remove'] as const;

packages/integration-shims/src/Replay.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import type { Integration } from '@sentry/core';
2-
import { consoleSandbox } from '@sentry/core';
1+
import type { Integration } from '@sentry/core/browser';
2+
import { consoleSandbox } from '@sentry/core/browser';
33
import { FAKE_FUNCTION } from './common';
44

55
const REPLAY_INTEGRATION_METHODS = ['start', 'stop', 'flush'] as const;

packages/integration-shims/src/SpanStreaming.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { consoleSandbox, defineIntegration } from '@sentry/core';
1+
import { consoleSandbox, defineIntegration } from '@sentry/core/browser';
22

33
/**
44
* This is a shim for the SpanStreaming integration.

packages/integration-shims/src/launchDarkly.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { consoleSandbox, defineIntegration, isBrowser } from '@sentry/core';
1+
import { consoleSandbox, defineIntegration, isBrowser } from '@sentry/core/browser';
22
import { FAKE_FUNCTION } from './common';
33

44
/**

packages/integration-shims/src/logs.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import type { Integration, ParameterizedString } from '@sentry/core';
2-
import { consoleSandbox, defineIntegration } from '@sentry/core';
1+
import type { Integration, ParameterizedString } from '@sentry/core/browser';
2+
import { consoleSandbox, defineIntegration } from '@sentry/core/browser';
33
import { FAKE_FUNCTION } from './common';
44
import { DEBUG_BUILD } from './debug-build';
55

packages/integration-shims/tsconfig.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
"include": ["src/**/*"],
55

66
"compilerOptions": {
7+
"module": "esnext",
8+
"moduleResolution": "bundler"
79
// package-specific options
810
}
911
}

0 commit comments

Comments
 (0)