Skip to content

feat(react-router)!: Remove unstable_sentryVitePluginOptions - #23374

Draft
chargome wants to merge 1 commit into
charlygomez/js-3359-nextjs-remove-unstable_sentrywebpackpluginoptionsfrom
charlygomez/js-3360-react-router-remove-unstable_sentryvitepluginoptions
Draft

feat(react-router)!: Remove unstable_sentryVitePluginOptions#23374
chargome wants to merge 1 commit into
charlygomez/js-3359-nextjs-remove-unstable_sentrywebpackpluginoptionsfrom
charlygomez/js-3360-react-router-remove-unstable_sentryvitepluginoptions

Conversation

@chargome

@chargome chargome commented Aug 12, 2026

Copy link
Copy Markdown
Member

Removes unstable_sentryVitePluginOptions from the React Router build options.

Net deletion of ~430 lines: the hatch could contradict sentryOnBuildEnd, so a guard, a console.warn and an "explicit undefined erases the unstable value" workaround all existed purely to contain it. All three go.

While removing it, sentryUrl and headers turned out to reach the SentryCli constructor only through the hatch, so self-hosted setups had no supported way to point the buildEnd upload at their instance. They are now read from the top-level config — the react-router-sourcemaps e2e app depended on exactly this, via unstable_sentryVitePluginOptions.url.

Tests asserting hatch-vs-top-level precedence are deleted; the ones asserting real invariants (source maps stay disabled for the Vite plugin, filesToDeleteAfterUpload never forwarded, metaFramework pinned) are rewritten against top-level options. The #22929 regression coverage is preserved in both the unit tests and the e2e app.

Fixes #23344

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@linear-code

linear-code Bot commented Aug 12, 2026

Copy link
Copy Markdown

JS-3360

@chargome chargome self-assigned this Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

react-router: Remove unstable_sentryVitePluginOptions

1 participant