Skip to content

Commit bf3c161

Browse files
authored
fix(nextjs): Use correct function to compute webpack overrides (#3526)
1 parent e5c7ef9 commit bf3c161

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/nextjs/src/utils/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ export function withSentryConfig(
128128
// warn if any of the default options for the webpack plugin are getting overridden
129129
const webpackPluginOptionOverrides = Object.keys(defaultWebpackPluginOptions)
130130
.concat('dryrun')
131-
.map(key => key in Object.keys(providedWebpackPluginOptions));
131+
.filter(key => key in Object.keys(providedWebpackPluginOptions));
132132
if (webpackPluginOptionOverrides.length > 0) {
133133
logger.warn(
134134
'[Sentry] You are overriding the following automatically-set SentryWebpackPlugin config options:\n' +

0 commit comments

Comments
 (0)