Skip to content

Commit 697c1be

Browse files
committed
feat(browser): Add replay.feedback CDN bundle
1 parent 499b79a commit 697c1be

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

packages/browser/rollup.bundle.config.mjs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,13 @@ const tracingReplayBaseBundleConfig = makeBaseBundleConfig({
8585
outputFileBase: () => 'bundles/bundle.tracing.replay',
8686
});
8787

88+
const replayFeedbackBaseBundleConfig = makeBaseBundleConfig({
89+
bundleType: 'standalone',
90+
entrypoints: ['src/index.bundle.replay.feedback.ts'],
91+
licenseTitle: '@sentry/browser (Replay, and Feedback)',
92+
outputFileBase: () => 'bundles/bundle.replay.feedback',
93+
});
94+
8895
const tracingReplayFeedbackBaseBundleConfig = makeBaseBundleConfig({
8996
bundleType: 'standalone',
9097
entrypoints: ['src/index.bundle.tracing.replay.feedback.ts'],
@@ -98,6 +105,7 @@ builds.push(
98105
...makeBundleConfigVariants(replayBaseBundleConfig),
99106
...makeBundleConfigVariants(feedbackBaseBundleConfig),
100107
...makeBundleConfigVariants(tracingReplayBaseBundleConfig),
108+
...makeBundleConfigVariants(replayFeedbackBaseBundleConfig),
101109
...makeBundleConfigVariants(tracingReplayFeedbackBaseBundleConfig),
102110
);
103111

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { browserTracingIntegrationShim } from '@sentry-internal/integration-shims';
2+
import { feedbackAsyncIntegration } from './feedbackAsync';
3+
4+
export * from './index.bundle.base';
5+
6+
export { getFeedback, sendFeedback } from '@sentry-internal/feedback';
7+
8+
export {
9+
browserTracingIntegrationShim as browserTracingIntegration,
10+
feedbackAsyncIntegration as feedbackAsyncIntegration,
11+
feedbackAsyncIntegration as feedbackIntegration,
12+
};
13+
14+
export { replayIntegration, getReplay } from '@sentry-internal/replay';

0 commit comments

Comments
 (0)