99 EntryPropertyFunction ,
1010 ExportedNextConfig ,
1111 NextConfigObject ,
12- SentryWebpackPlugin as SentryWebpackPluginType ,
1312 SentryWebpackPluginOptions ,
1413 WebpackConfigObject ,
1514} from '../src/config/types' ;
@@ -379,7 +378,7 @@ describe('Sentry webpack plugin config', () => {
379378 incomingWebpackBuildContext : clientBuildContext ,
380379 } ) ;
381380
382- const sentryWebpackPlugin = finalWebpackConfig . plugins ?. [ 0 ] as SentryWebpackPluginType ;
381+ const sentryWebpackPlugin = finalWebpackConfig . plugins ?. [ 0 ] as SentryWebpackPlugin ;
383382
384383 expect ( sentryWebpackPlugin . options ?. include ) . toEqual ( [
385384 { paths : [ '.next/static/chunks/pages' ] , urlPrefix : '~/_next/static/chunks/pages' } ,
@@ -396,7 +395,7 @@ describe('Sentry webpack plugin config', () => {
396395 incomingWebpackBuildContext : getBuildContext ( 'server' , userNextConfigServerless ) ,
397396 } ) ;
398397
399- const sentryWebpackPlugin = finalWebpackConfig . plugins ?. [ 0 ] as SentryWebpackPluginType ;
398+ const sentryWebpackPlugin = finalWebpackConfig . plugins ?. [ 0 ] as SentryWebpackPlugin ;
400399
401400 expect ( sentryWebpackPlugin . options ?. include ) . toEqual ( [
402401 { paths : [ '.next/serverless/' ] , urlPrefix : '~/_next/serverless' } ,
@@ -413,7 +412,7 @@ describe('Sentry webpack plugin config', () => {
413412 incomingWebpackBuildContext : serverBuildContextWebpack4 ,
414413 } ) ;
415414
416- const sentryWebpackPlugin = finalWebpackConfig . plugins ?. [ 0 ] as SentryWebpackPluginType ;
415+ const sentryWebpackPlugin = finalWebpackConfig . plugins ?. [ 0 ] as SentryWebpackPlugin ;
417416
418417 expect ( sentryWebpackPlugin . options ?. include ) . toEqual ( [
419418 { paths : [ '.next/server/pages/' ] , urlPrefix : '~/_next/server/pages' } ,
@@ -427,7 +426,7 @@ describe('Sentry webpack plugin config', () => {
427426 incomingWebpackBuildContext : serverBuildContext ,
428427 } ) ;
429428
430- const sentryWebpackPlugin = finalWebpackConfig . plugins ?. [ 0 ] as SentryWebpackPluginType ;
429+ const sentryWebpackPlugin = finalWebpackConfig . plugins ?. [ 0 ] as SentryWebpackPlugin ;
431430
432431 expect ( sentryWebpackPlugin . options ?. include ) . toEqual ( [
433432 { paths : [ '.next/server/pages/' ] , urlPrefix : '~/_next/server/pages' } ,
@@ -449,7 +448,7 @@ describe('Sentry webpack plugin config', () => {
449448 incomingWebpackBuildContext : getBuildContext ( 'client' , userNextConfigWithBasePath ) ,
450449 } ) ;
451450
452- const sentryWebpackPlugin = finalWebpackConfig . plugins ?. [ 0 ] as SentryWebpackPluginType ;
451+ const sentryWebpackPlugin = finalWebpackConfig . plugins ?. [ 0 ] as SentryWebpackPlugin ;
453452
454453 expect ( sentryWebpackPlugin . options ?. include ) . toEqual ( [
455454 { paths : [ '.next/static/chunks/pages' ] , urlPrefix : '~/city-park/_next/static/chunks/pages' } ,
@@ -466,7 +465,7 @@ describe('Sentry webpack plugin config', () => {
466465 incomingWebpackBuildContext : getBuildContext ( 'server' , userNextConfigServerless ) ,
467466 } ) ;
468467
469- const sentryWebpackPlugin = finalWebpackConfig . plugins ?. [ 0 ] as SentryWebpackPluginType ;
468+ const sentryWebpackPlugin = finalWebpackConfig . plugins ?. [ 0 ] as SentryWebpackPlugin ;
470469
471470 expect ( sentryWebpackPlugin . options ?. include ) . toEqual ( [
472471 { paths : [ '.next/serverless/' ] , urlPrefix : '~/city-park/_next/serverless' } ,
@@ -483,7 +482,7 @@ describe('Sentry webpack plugin config', () => {
483482 incomingWebpackBuildContext : serverBuildContextWebpack4 ,
484483 } ) ;
485484
486- const sentryWebpackPlugin = finalWebpackConfig . plugins ?. [ 0 ] as SentryWebpackPluginType ;
485+ const sentryWebpackPlugin = finalWebpackConfig . plugins ?. [ 0 ] as SentryWebpackPlugin ;
487486
488487 expect ( sentryWebpackPlugin . options ?. include ) . toEqual ( [
489488 { paths : [ '.next/server/pages/' ] , urlPrefix : '~/city-park/_next/server/pages' } ,
@@ -497,7 +496,7 @@ describe('Sentry webpack plugin config', () => {
497496 incomingWebpackBuildContext : getBuildContext ( 'server' , userNextConfigWithBasePath ) ,
498497 } ) ;
499498
500- const sentryWebpackPlugin = finalWebpackConfig . plugins ?. [ 0 ] as SentryWebpackPluginType ;
499+ const sentryWebpackPlugin = finalWebpackConfig . plugins ?. [ 0 ] as SentryWebpackPlugin ;
501500
502501 expect ( sentryWebpackPlugin . options ?. include ) . toEqual ( [
503502 { paths : [ '.next/server/pages/' ] , urlPrefix : '~/city-park/_next/server/pages' } ,
0 commit comments