@@ -18,7 +18,7 @@ import {
1818 makeTSPlugin ,
1919 makeExcludeBlockPlugin ,
2020 makeSetSDKSourcePlugin ,
21- makeReplayShimPlugin ,
21+ makeIntegrationShimPlugin ,
2222} from './plugins/index.js' ;
2323import { mergePlugins } from './utils' ;
2424
@@ -45,11 +45,11 @@ export function makeBaseBundleConfig(options) {
4545 const licensePlugin = makeLicensePlugin ( licenseTitle ) ;
4646 const tsPlugin = makeTSPlugin ( jsVersion . toLowerCase ( ) ) ;
4747 const excludeReplayPlugin = makeExcludeBlockPlugin ( 'REPLAY' ) ;
48- const excludeReplayShimPlugin = makeExcludeBlockPlugin ( 'REPLAY_SHIM' ) ;
4948 const excludeOfflineTransport = makeExcludeBlockPlugin ( 'OFFLINE' ) ;
5049 const excludeBrowserProfiling = makeExcludeBlockPlugin ( 'BROWSER_PROFILING' ) ;
5150 const excludeBrowserTracing = makeExcludeBlockPlugin ( 'BROWSER_TRACING' ) ;
52- const replayShimPlugin = makeReplayShimPlugin ( ) ;
51+ const replayShimPlugin = makeIntegrationShimPlugin ( '@sentry/replay' ) ;
52+ const browserTracingShimPlugin = makeIntegrationShimPlugin ( '@sentry-internal/tracing' ) ;
5353
5454 // The `commonjs` plugin is the `esModuleInterop` of the bundling world. When used with `transformMixedEsModules`, it
5555 // will include all dependencies, imported or required, in the final bundle. (Without it, CJS modules aren't included
@@ -68,11 +68,7 @@ export function makeBaseBundleConfig(options) {
6868
6969 if ( includeReplay === 'shim' ) {
7070 standAloneBundleConfig . plugins . push ( replayShimPlugin ) ;
71- } else {
72- standAloneBundleConfig . plugins . push ( excludeReplayShimPlugin ) ;
73- }
74-
75- if ( ! includeReplay ) {
71+ } else if ( ! includeReplay ) {
7672 standAloneBundleConfig . plugins . push ( excludeReplayPlugin ) ;
7773 }
7874
@@ -84,6 +80,9 @@ export function makeBaseBundleConfig(options) {
8480 standAloneBundleConfig . plugins . push ( excludeBrowserProfiling ) ;
8581 }
8682
83+ if ( includeBrowserTracing === 'shim' ) {
84+ standAloneBundleConfig . plugins . push ( browserTracingShimPlugin ) ;
85+ }
8786 if ( ! includeBrowserTracing ) {
8887 standAloneBundleConfig . plugins . push ( excludeBrowserTracing ) ;
8988 }
0 commit comments