@@ -4,7 +4,7 @@ import type { Package } from '@sentry/types';
44import  HtmlWebpackPlugin ,  {  createHtmlTagObject  }  from  'html-webpack-plugin' ; 
55import  type  {  Compiler  }  from  'webpack' ; 
66
7- import  {  addStaticAsset ,  addStaticAssetSymlink  }  from  './staticAssets' ; 
7+ import  {  addStaticAsset ,  symlinkAsset  }  from  './staticAssets' ; 
88
99const  LOADER_TEMPLATE  =  fs . readFileSync ( path . join ( __dirname ,  '../fixtures/loader.js' ) ,  'utf-8' ) ; 
1010const  PACKAGES_DIR  =  path . join ( __dirname ,  '..' ,  '..' ,  '..' ,  'packages' ) ; 
@@ -214,7 +214,10 @@ class SentryScenarioGenerationPlugin {
214214                src : 'cdn.bundle.js' , 
215215              } ) ; 
216216
217-           addStaticAssetSymlink ( this . localOutPath ,  path . resolve ( PACKAGES_DIR ,  bundleName ,  bundlePath ) ,  'cdn.bundle.js' ) ; 
217+           symlinkAsset ( 
218+             path . resolve ( PACKAGES_DIR ,  bundleName ,  bundlePath ) , 
219+             path . join ( this . localOutPath ,  'cdn.bundle.js' ) , 
220+           ) ; 
218221
219222          if  ( useLoader )  { 
220223            const  loaderConfig  =  LOADER_CONFIGS [ bundleKey ] ; 
@@ -245,14 +248,13 @@ class SentryScenarioGenerationPlugin {
245248              const  fileName  =  `${ integration }  .bundle.js` ; 
246249
247250              // We add the files, but not a script tag - they are lazy-loaded 
248-               addStaticAssetSymlink ( 
249-                 this . localOutPath , 
251+               symlinkAsset ( 
250252                path . resolve ( 
251253                  PACKAGES_DIR , 
252254                  'feedback' , 
253255                  BUNDLE_PATHS [ 'feedback' ] ?. [ integrationBundleKey ] ?. replace ( '[INTEGRATION_NAME]' ,  integration )  ||  '' , 
254256                ) , 
255-                 fileName , 
257+                 path . join ( this . localOutPath ,   fileName ) , 
256258              ) ; 
257259            } ) ; 
258260          } 
@@ -262,26 +264,23 @@ class SentryScenarioGenerationPlugin {
262264          if  ( baseIntegrationFileName )  { 
263265            this . requiredIntegrations . forEach ( integration  =>  { 
264266              const  fileName  =  `${ integration }  .bundle.js` ; 
265-               addStaticAssetSymlink ( 
266-                 this . localOutPath , 
267+               symlinkAsset ( 
267268                path . resolve ( 
268269                  PACKAGES_DIR , 
269270                  'browser' , 
270271                  baseIntegrationFileName . replace ( '[INTEGRATION_NAME]' ,  integration ) , 
271272                ) , 
272-                 fileName , 
273+                 path . join ( this . localOutPath ,   fileName ) , 
273274              ) ; 
274275
275276              if  ( integration  ===  'feedback' )  { 
276-                 addStaticAssetSymlink ( 
277-                   this . localOutPath , 
277+                 symlinkAsset ( 
278278                  path . resolve ( PACKAGES_DIR ,  'feedback' ,  'build/bundles/feedback-modal.js' ) , 
279-                   'feedback-modal.bundle.js' , 
279+                   path . join ( this . localOutPath ,   'feedback-modal.bundle.js' ) , 
280280                ) ; 
281-                 addStaticAssetSymlink ( 
282-                   this . localOutPath , 
281+                 symlinkAsset ( 
283282                  path . resolve ( PACKAGES_DIR ,  'feedback' ,  'build/bundles/feedback-screenshot.js' ) , 
284-                   'feedback-screenshot.bundle.js' , 
283+                   path . join ( this . localOutPath ,   'feedback-screenshot.bundle.js' ) , 
285284                ) ; 
286285              } 
287286
@@ -295,10 +294,9 @@ class SentryScenarioGenerationPlugin {
295294
296295          const  baseWasmFileName  =  BUNDLE_PATHS [ 'wasm' ] ?. [ integrationBundleKey ] ; 
297296          if  ( this . requiresWASMIntegration  &&  baseWasmFileName )  { 
298-             addStaticAssetSymlink ( 
299-               this . localOutPath , 
297+             symlinkAsset ( 
300298              path . resolve ( PACKAGES_DIR ,  'wasm' ,  baseWasmFileName ) , 
301-               'wasm.bundle.js' , 
299+               path . join ( this . localOutPath ,   'wasm.bundle.js' ) , 
302300            ) ; 
303301
304302            const  wasmObject  =  createHtmlTagObject ( 'script' ,  { 
0 commit comments