Skip to content

Commit abdc3b5

Browse files
authored
feat(browser): Add replay.feedback CDN bundle (#17496)
I think we originally decided to only have a error + feedback bundle and a error + tracing + replay + feedback bundle for simplicity. But I suppose it does not really make things easier that there is exactly one (error + replay + feedback) missing, so I'd just add this here now. Esp. if we want to add this in the loader this will be much easier to handle.
1 parent 7931f8d commit abdc3b5

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)