feat(nextjs)!: Remove unstable_sentryWebpackPluginOptions - #23372
Merged
chargome merged 1 commit intoAug 13, 2026
Conversation
chargome
force-pushed
the
charlygomez/js-3359-nextjs-remove-unstable_sentrywebpackpluginoptions
branch
from
August 12, 2026 14:51
675f2aa to
ab9b3a7
Compare
chargome
changed the base branch from
charlygomez/js-3355-core-add-build-time-options-for-bundler-plugin-parity
to
charlygomez/js-3358-astro-remove-unstable_sentryvitepluginoptions
August 12, 2026 14:51
Contributor
size-limit report 📦
|
chargome
force-pushed
the
charlygomez/js-3359-nextjs-remove-unstable_sentrywebpackpluginoptions
branch
from
August 13, 2026 09:28
ab9b3a7 to
c1770ab
Compare
chargome
force-pushed
the
charlygomez/js-3359-nextjs-remove-unstable_sentrywebpackpluginoptions
branch
from
August 13, 2026 09:44
c1770ab to
c588280
Compare
Member
Author
|
bugbot run |
chargome
force-pushed
the
charlygomez/js-3359-nextjs-remove-unstable_sentrywebpackpluginoptions
branch
from
August 13, 2026 10:02
c588280 to
16026d6
Compare
chargome
force-pushed
the
charlygomez/js-3359-nextjs-remove-unstable_sentrywebpackpluginoptions
branch
from
August 13, 2026 10:56
16026d6 to
f6f7e93
Compare
chargome
force-pushed
the
charlygomez/js-3359-nextjs-remove-unstable_sentrywebpackpluginoptions
branch
from
August 13, 2026 11:45
f6f7e93 to
3601edd
Compare
chargome
force-pushed
the
charlygomez/js-3359-nextjs-remove-unstable_sentrywebpackpluginoptions
branch
2 times, most recently
from
August 13, 2026 12:32
e2b52f4 to
e59a26a
Compare
Member
Author
|
bugbot run |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit e59a26a. Configure here.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
chargome
force-pushed
the
charlygomez/js-3359-nextjs-remove-unstable_sentrywebpackpluginoptions
branch
2 times, most recently
from
August 13, 2026 13:17
e59a26a to
7418e02
Compare
chargome
marked this pull request as ready for review
August 13, 2026 13:45
s1gr1d
approved these changes
Aug 13, 2026
nicohrubec
approved these changes
Aug 13, 2026
| * something other than a relative path, Sentry is unable to locate the source map for a given | ||
| * build artifact. This hook lets you implement the resolution process yourself. | ||
| */ | ||
| resolveSourceMap?: ResolveSourceMapHook; |
Member
There was a problem hiding this comment.
q: why do we have this new option now?
Member
Author
There was a problem hiding this comment.
this was not hoisted before, we'll move nextjs to the shared type
| * the SDK warns at build time. For `thirdPartyErrorFilterIntegration` support use | ||
| * `applicationKey`, which works on both bundlers. | ||
| */ | ||
| moduleMetadata?: ModuleMetadata | ModuleMetadataCallback; |
Member
Author
There was a problem hiding this comment.
same for this, we only have applicationKey, which calls this behind the scenes but we'll make it available top level
chargome
deleted the
charlygomez/js-3359-nextjs-remove-unstable_sentrywebpackpluginoptions
branch
August 13, 2026 15:24
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Removes
unstable_sentryWebpackPluginOptions— both the deprecated top-level option and the one nested underwebpack.SentryBuildOptionsis hand-rolled rather than built onBuildTimeOptionsBase, so it was missingmoduleMetadataandsourcemaps.resolveSourceMap. Both were only reachable through the hatch and are added here, reusing the shared types from core.webpack.reactComponentAnnotationnow uses the sharedReactComponentAnnotationOptionstoo.Adds a build-time warning covering both spellings. This matters most for Next.js:
next.config.js/next.config.mjsget no type checking, so a removed option would otherwise be a silent no-op.Fixes #23343