File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
packages/webpack-plugin/src Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ function webpackReleaseInjectionPlugin(injectionCode: string): UnpluginOptions {
3737
3838function webpackDebugIdInjectionPlugin ( ) : UnpluginOptions {
3939 const pluginName = "sentry-webpack-debug-id-injection-plugin" ;
40- const debugIdSnippet = getDebugIdSnippet ( uuidv4 ( ) ) ;
4140
4241 return {
4342 name : pluginName ,
@@ -48,7 +47,7 @@ function webpackDebugIdInjectionPlugin(): UnpluginOptions {
4847 new compiler . webpack . BannerPlugin ( {
4948 raw : true ,
5049 include : / \. ( j s | t s | j s x | t s x | m j s | c j s ) $ / ,
51- banner : debugIdSnippet ,
50+ banner : ( ) => getDebugIdSnippet ( uuidv4 ( ) ) ,
5251 } )
5352 ) ;
5453 } else {
@@ -57,7 +56,7 @@ function webpackDebugIdInjectionPlugin(): UnpluginOptions {
5756 new Webpack4BannerPlugin ( {
5857 raw : true ,
5958 include : / \. ( j s | t s | j s x | t s x | m j s | c j s ) $ / ,
60- banner : debugIdSnippet ,
59+ banner : ( ) => getDebugIdSnippet ( uuidv4 ( ) ) ,
6160 } )
6261 ) ;
6362 }
You can’t perform that action at this time.
0 commit comments