1
- import includeAllNextjsProps from './nextConfigToWebpackPluginConfig' ;
1
+ // import includeAllNextjsProps from './nextConfigToWebpackPluginConfig';
2
2
import { ExportedNextConfig , NextConfigFunction , NextConfigObject , SentryWebpackPluginOptions } from './types' ;
3
3
import { constructWebpackConfigFunction } from './webpack' ;
4
4
@@ -18,21 +18,23 @@ export function withSentryConfig(
18
18
if ( typeof userNextConfig === 'function' ) {
19
19
return function ( phase : string , defaults : { defaultConfig : NextConfigObject } ) : NextConfigObject {
20
20
const materializedUserNextConfig = userNextConfig ( phase , defaults ) ;
21
- const sentryWebpackPluginOptionsWithSources = includeAllNextjsProps (
22
- materializedUserNextConfig ,
23
- userSentryWebpackPluginOptions ,
24
- ) ;
21
+ // const sentryWebpackPluginOptionsWithSources = includeAllNextjsProps(
22
+ // materializedUserNextConfig,
23
+ // userSentryWebpackPluginOptions,
24
+ // );
25
25
return {
26
26
...materializedUserNextConfig ,
27
- webpack : constructWebpackConfigFunction ( materializedUserNextConfig , sentryWebpackPluginOptionsWithSources ) ,
27
+ webpack : constructWebpackConfigFunction ( materializedUserNextConfig , userSentryWebpackPluginOptions ) ,
28
+ // webpack: constructWebpackConfigFunction(materializedUserNextConfig, sentryWebpackPluginOptionsWithSources),
28
29
} ;
29
30
} ;
30
31
}
31
32
32
- const webpackPluginOptionsWithSources = includeAllNextjsProps ( userNextConfig , userSentryWebpackPluginOptions ) ;
33
+ // const webpackPluginOptionsWithSources = includeAllNextjsProps(userNextConfig, userSentryWebpackPluginOptions);
33
34
// Otherwise, we can just merge their config with ours and return an object.
34
35
return {
35
36
...userNextConfig ,
36
- webpack : constructWebpackConfigFunction ( userNextConfig , webpackPluginOptionsWithSources ) ,
37
+ webpack : constructWebpackConfigFunction ( userNextConfig , userSentryWebpackPluginOptions ) ,
38
+ // webpack: constructWebpackConfigFunction(userNextConfig, webpackPluginOptionsWithSources),
37
39
} ;
38
40
}
0 commit comments