-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(feedback): Ensure pluggable feedback CDN bundle is correctly built (
#13081) Fixes #13080 This was basically just wrong - we need stuff from `browser` package there, so we can't really build the final CDN bundle from the feedback-internal package. I moved this over and also adjusted tests to actually test this with pluggable CDN integrations as well.
- Loading branch information
Showing
8 changed files
with
28 additions
and
27 deletions.
There are no files selected for viewing
4 changes: 3 additions & 1 deletion
4
dev-packages/browser-integration-tests/suites/feedback/captureFeedback/init.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/init.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
import * as Sentry from '@sentry/browser'; | ||
// Import this separately so that generatePlugin can handle it for CDN scenarios | ||
import { feedbackIntegration } from '@sentry/browser'; | ||
|
||
window.Sentry = Sentry; | ||
|
||
Sentry.init({ | ||
dsn: 'https://public@dsn.ingest.sentry.io/1337', | ||
integrations: [Sentry.browserTracingIntegration(), Sentry.feedbackIntegration()], | ||
integrations: [Sentry.browserTracingIntegration(), feedbackIntegration()], | ||
tracePropagationTargets: ['http://example.com'], | ||
tracesSampleRate: 1, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { feedbackAsyncIntegration } from '../feedbackAsync'; | ||
|
||
export { getFeedback } from '@sentry-internal/feedback'; | ||
|
||
export { feedbackAsyncIntegration, feedbackAsyncIntegration as feedbackIntegration }; | ||
|
||
export { captureFeedback } from '@sentry/core'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters