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';
1515
1616// Bundles need to be injected into HTML before Sentry initialization.
1717const 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' ) ;
1821
1922const BUNDLE_PATHS : Record < string , Record < string , string > > = {
2023 browser : {
@@ -126,7 +129,9 @@ class SentryScenarioGenerationPlugin {
126129 this . requiresTracing = true ;
127130 } else if ( source === '@sentry/integrations' ) {
128131 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+
130135 this . requiresReplay = true ;
131136 }
132137 } ,
You can’t perform that action at this time.
0 commit comments