File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
packages/integration-tests/utils Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,9 @@ const useCompiledModule = bundleKey === 'esm' || bundleKey === 'cjs';
15
15
16
16
// Bundles need to be injected into HTML before Sentry initialization.
17
17
const useBundle = bundleKey && ! useCompiledModule ;
18
+ // `true` if we use an SDK bundle that supports Replay ootb,
19
+ // without the need to add the additional addon replay integration bundle
20
+ const useFullReplayBundle = useBundle && bundleKey . includes ( 'replay' ) ;
18
21
19
22
const BUNDLE_PATHS : Record < string , Record < string , string > > = {
20
23
browser : {
@@ -126,7 +129,9 @@ class SentryScenarioGenerationPlugin {
126
129
this . requiresTracing = true ;
127
130
} else if ( source === '@sentry/integrations' ) {
128
131
this . requiredIntegrations . push ( statement . specifiers [ 0 ] . imported . name . toLowerCase ( ) ) ;
129
- } else if ( source === '@sentry/replay' ) {
132
+ } else if ( ! useFullReplayBundle && source === '@sentry/replay' ) {
133
+ console . log ( 'injecting replay addon bundle' ) ;
134
+
130
135
this . requiresReplay = true ;
131
136
}
132
137
} ,
You can’t perform that action at this time.
0 commit comments