@@ -200,6 +200,7 @@ async function materializeFinalWebpackConfig(options: {
200
200
const webpackConfigFunction = constructWebpackConfigFunction (
201
201
materializedUserNextConfig ,
202
202
userSentryWebpackPluginConfig ,
203
+ materializedUserNextConfig . sentry ,
203
204
) ;
204
205
205
206
// call it to get concrete values for comparison
@@ -870,9 +871,11 @@ describe('Sentry webpack plugin config', () => {
870
871
[ getBuildContext ( 'server' , { } , '4' ) , '.next' ] ,
871
872
[ getBuildContext ( 'server' , { } , '5' ) , '.next' ] ,
872
873
] ) ( '`distDir` is not defined' , ( buildContext : BuildContext , expectedDistDir ) => {
873
- const includePaths = getWebpackPluginOptions ( buildContext , {
874
- /** userPluginOptions */
875
- } ) . include as { paths : [ ] } [ ] ;
874
+ const includePaths = getWebpackPluginOptions (
875
+ buildContext ,
876
+ { } , // userPluginOptions
877
+ { } , // userSentryOptions
878
+ ) . include as { paths : [ ] } [ ] ;
876
879
877
880
for ( const pathDescriptor of includePaths ) {
878
881
for ( const path of pathDescriptor . paths ) {
@@ -887,9 +890,11 @@ describe('Sentry webpack plugin config', () => {
887
890
[ getBuildContext ( 'server' , { distDir : 'tmpDir' } , '4' ) , 'tmpDir' ] ,
888
891
[ getBuildContext ( 'server' , { distDir : 'tmpDir' } , '5' ) , 'tmpDir' ] ,
889
892
] ) ( '`distDir` is defined' , ( buildContext : BuildContext , expectedDistDir ) => {
890
- const includePaths = getWebpackPluginOptions ( buildContext , {
891
- /** userPluginOptions */
892
- } ) . include as { paths : [ ] } [ ] ;
893
+ const includePaths = getWebpackPluginOptions (
894
+ buildContext ,
895
+ { } , // userPluginOptions
896
+ { } , // userSentryOptions
897
+ ) . include as { paths : [ ] } [ ] ;
893
898
894
899
for ( const pathDescriptor of includePaths ) {
895
900
for ( const path of pathDescriptor . paths ) {
0 commit comments