GeezerVison is showing github.com — feat(react-router): Support `sourcemaps.upload`, `injectDebugIds` and `delete` by timfish · Pull Request #26607 · getsentry/sentry-javascript
Conversation
timfish
commented
Nov 18, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
React Router uploads with the CLI in sentryOnBuildEnd, and the bundler plugin's source map handling stays off. The SDK applies the new options there: upload gates the upload, injectDebugIds the debug ID injection. delete: true deletes every map next to the user's filesToDeleteAfterUpload, also without an upload, and switches build.sourcemap: true to 'hidden'. delete: false deletes only the user's files. Without delete, the SDK deletes the maps after an upload only when it turned them on itself. With the source map setting unset, Sentry turns on hidden maps only when it uploads them or when delete: false keeps them.
Fixes:
release.create: false is now respected. The SDK created the release anyway.
- Without
delete, maps the user turned on are no longer deleted, also not after a failed upload.
Still open:
assets, ignore and rewriteSources are accepted but never applied.
- The CLI upload injects debug IDs into the output files in place after the build, so hashes the build computed no longer match.
- Until the old options are removed in v12,
disable: true still turns on hidden maps and leaves them in the output. upload: false and injectDebugIds: false do not turn them on.
E2E: react-router-8-sourcemaps gets "manual upload" and "delete all" variants.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…etry
An unset option sent the text "undefined" as its tag value. The telemetry snapshots of the integration tests now hold the three new tags.
size-limit report 📦
Compared: 7230380 (PR test merge using develop at bd043ee)
Against: bd043ee (develop) · base run #67052
✅ Baseline matches: this diff contains only this PR's changes.
| Path |
Size |
% Change |
Change |
| @sentry/browser |
30.23 kB |
- |
- |
| @sentry/browser - with treeshaking flags |
28.43 kB |
- |
- |
| @sentry/browser - with treeshaking flags tracing without tracing |
28.33 kB |
- |
- |
| @sentry/browser (incl. Tracing) |
52.79 kB |
- |
- |
| @sentry/browser (incl. Tracing Core) |
40.32 kB |
- |
- |
| @sentry/browser (incl. Tracing + Span Streaming) |
52.8 kB |
- |
- |
| @sentry/browser (incl. Tracing, Profiling) |
55.68 kB |
- |
- |
| @sentry/browser (incl. Tracing, Replay) |
92.84 kB |
- |
- |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags |
81.66 kB |
- |
- |
| @sentry/browser (incl. Tracing, Replay with Canvas) |
97.22 kB |
- |
- |
| @sentry/browser (incl. Tracing, Replay, Feedback) |
110.76 kB |
- |
- |
| @sentry/browser (incl. Feedback) |
48.17 kB |
- |
- |
| @sentry/browser (incl. sendFeedback) |
30.81 kB |
- |
- |
| @sentry/browser (incl. FeedbackAsync) |
35.84 kB |
- |
- |
| @sentry/browser (incl. Metrics) |
31.55 kB |
- |
- |
| @sentry/browser (incl. Logs) |
31.83 kB |
- |
- |
| @sentry/browser (incl. Metrics & Logs) |
32.49 kB |
- |
- |
| @sentry/react |
32.24 kB |
- |
- |
| @sentry/react (incl. Tracing) |
55.44 kB |
- |
- |
| @sentry/vue |
38.44 kB |
- |
- |
| @sentry/vue (incl. Tracing) |
55.74 kB |
- |
- |
| @sentry/svelte |
30.24 kB |
- |
- |
| @sentry/remix (Remix 3 client bundle) |
58.45 kB |
- |
- |
| CDN Bundle |
32.16 kB |
- |
- |
| CDN Bundle (incl. Tracing) |
53.18 kB |
- |
- |
| CDN Bundle (incl. Logs, Metrics) |
34.95 kB |
- |
- |
| CDN Bundle (incl. Tracing, Logs, Metrics) |
55.74 kB |
- |
- |
| CDN Bundle (incl. Replay, Logs, Metrics) |
75.98 kB |
- |
- |
| CDN Bundle (incl. Tracing, Replay) |
91.06 kB |
- |
- |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) |
93.68 kB |
- |
- |
| CDN Bundle (incl. Tracing, Replay, Feedback) |
96.47 kB |
- |
- |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) |
99.03 kB |
- |
- |
| CDN Bundle - uncompressed |
93.91 kB |
- |
- |
| CDN Bundle (incl. Tracing) - uncompressed |
157.23 kB |
- |
- |
| CDN Bundle (incl. Logs, Metrics) - uncompressed |
102.24 kB |
- |
- |
| CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed |
164.86 kB |
- |
- |
| CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed |
232.36 kB |
- |
- |
| CDN Bundle (incl. Tracing, Replay) - uncompressed |
277.39 kB |
- |
- |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed |
285.02 kB |
- |
- |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed |
289.32 kB |
- |
- |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed |
296.94 kB |
- |
- |
| @sentry/nextjs (client) |
59.13 kB |
- |
- |
| @sentry/sveltekit (client) |
54.06 kB |
- |
- |
| @sentry/core/server |
45.26 kB |
- |
- |
| @sentry/core/browser |
14.4 kB |
- |
- |
| @sentry/node |
153.25 kB |
-0.01% |
-2 B 🔽 |
| @sentry/node/import (ESM hook with diagnostics-channel injection) |
83.34 kB |
- |
- |
| @sentry/node - without tracing |
88.74 kB |
- |
- |
| @sentry/node - without channel injection |
142.22 kB |
+0.01% |
+1 B 🔺 |
| @sentry/aws-serverless |
99.11 kB |
-0.01% |
-3 B 🔽 |
| @sentry/cloudflare (withSentry) - minified |
207.85 kB |
- |
- |
| @sentry/cloudflare (withSentry) |
482.19 kB |
- |
- |
| @sentry/cloudflare (withSentry, instrumented CommonJS package) - minified |
1.01 MB |
- |
- |
| @sentry/nextjs/cloudflare (withSentry) - minified |
233.22 kB |
- |
- |
View base workflow run
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Optional E2E tests
Some optional checks were not successful. They do not block the merge. 3 not successful, 58 successful. See the run.
|
Check |
Status |
|
| ❌ |
CI: Optional E2E Tests / E2E cloudflare-workers-without-tracing-send-to-sentry Test (optional) |
Failing after 31s |
Details |
| ❌ |
CI: Optional E2E Tests / E2E cloudflare-workers-send-to-sentry Test (optional) |
Failing after 36s |
Details |
| ❌ |
CI: Optional E2E Tests / E2E nextjs-16-cacheComponents (cloudflare, static trace lifecycle) Test (optional) |
Failing after 11m |
Details |
Successful checks
|
Check |
Status |
|
| ✅ |
CI: Optional E2E Tests / E2E cloudflare-pi-durable (latest) Test (optional) |
Successful in 49s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E astro-7 (static trace lifecycle) Test (optional) |
Successful in 1m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E debug-id-sourcemaps Test (optional) |
Successful in 35s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E node-eve (0.x) Test (optional) |
Successful in 1m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E cloudflare-mastra Test (optional) |
Successful in 42s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E cloudflare-pi-durable Test (optional) |
Successful in 46s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E solidstart-2-tunnel Test (optional) |
Successful in 52s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E nestjs-12 (deno) Test (optional) |
Successful in 52s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E cloudflare-think (ai v6) Test (optional) |
Successful in 1m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E cloudflare-agent Test (optional) |
Successful in 38s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E node-flue Test (optional) |
Successful in 1m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E gen-ai-libraries (cloudflare) Test (optional) |
Successful in 36s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E node-pi-durable Test (optional) |
Successful in 37s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E gen-ai-libraries Test (optional) |
Successful in 53s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E node-flue (latest) Test (optional) |
Successful in 1m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E cloudflare-flue-send-to-sentry Test (optional) |
Successful in 2m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E nextjs-16 (vinext, bun) Test (optional) |
Successful in 2m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E node-eve Test (optional) |
Successful in 1m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E cloudflare-think Test (optional) |
Successful in 55s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E nextjs-15 (turbo) Test (optional) |
Successful in 2m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E solidstart-2 Test (optional) |
Successful in 52s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E nextjs-15 (latest) Test (optional) |
Successful in 3m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E tanstackstart-react-cloudflare Test (optional) |
Successful in 43s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E node-express-send-to-sentry Test (optional) |
Successful in 1m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E nextjs-16-tunnel (cloudflare) Test (optional) |
Successful in 1m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E astro-7 Test (optional) |
Successful in 1m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E deno (latest) Test (optional) |
Successful in 1m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E nextjs-16 (vinext) Test (optional) |
Successful in 2m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E node-express-send-to-sentry (static trace lifecycle) Test (optional) |
Successful in 1m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E node-openai-decisions Test (optional) |
Successful in 35s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E nestjs-12 (bun) Test (optional) |
Successful in 57s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E node-eve (orchestrion) Test (optional) |
Successful in 1m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E nextjs-16 (cloudflare, latest) Test (optional) |
Successful in 2m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E nestjs-12 (cloudflare) Test (optional) |
Successful in 31s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E nextjs-14-supabase Test (optional) |
Successful in 2m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E node-openai-decisions (latest) Test (optional) |
Successful in 26s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E node-express-mcp-v1 Test (optional) |
Successful in 32s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E nuxt-5 (kv-cache) Test (optional) |
Successful in 1m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E node-pi-durable (latest) Test (optional) |
Successful in 36s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E node-mastra Test (optional) |
Successful in 1m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E nuxt-5 (development) Test (optional) |
Successful in 1m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E nuxt-5-sourcemaps (client source maps kept) Test (optional) |
Successful in 34s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E tanstackstart-react-sourcemaps Test (optional) |
Successful in 39s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E node-fastify-6 Test (optional) |
Successful in 33s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E nuxt-5-sourcemaps Test (optional) |
Successful in 45s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E node-mastra (latest) Test (optional) |
Successful in 1m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E vue-3 (no Options API) Test (optional) |
Successful in 42s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E node-express-mcp-v2 Test (optional) |
Successful in 34s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E node-eve (content off) Test (optional) |
Successful in 1m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E nuxt-5-cloudflare Test (optional) |
Successful in 27s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E nuxt-5-sourcemaps (static / nuxt generate) Test (optional) |
Successful in 33s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E react-router-7-framework-instrumentation Test (optional) |
Successful in 3m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E react-send-to-sentry Test (optional) |
Successful in 2m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E tanstackstart-react (latest) Test (optional) |
Successful in 1m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E nuxt-5-tunnel Test (optional) |
Successful in 49s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E gen-ai-libraries (latest) Test (optional) |
Successful in 46s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E nuxt-5-tunnel (cloudflare) Test (optional) |
Successful in 29s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E nuxt-5 Test (optional) |
Successful in 1m |
Details |
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cursor Bugbot has reviewed your changes and found 1 potential issue.

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit ac864aa. Configure here.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
|
}
|
|
|
}
|
|
|
|
|
|
// `disable: 'disable-upload'` still injects debug IDs, so that source maps can be
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Conflicting sourcemap options emit no warning
Low Severity
resolveSourceMapsFeatures correctly drops a conflicting upload: true when injectDebugIds is false, and delete: false still honors filesToDeleteAfterUpload, but neither path warns. New options also win over disable with no warning. The bundler plugin warns in these cases; React Router never reaches that validator because sentryOnBuildEnd owns upload and deletion. I flagged this because the review rules require those warnings.
Additional Locations (1)
Triggered by learned rule: Delete only maps the upload actually sent
Reviewed by Cursor Bugbot for commit ac864aa. Configure here.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Comment on lines
+133
to
+135
|
|
} else if (typeof userFilesToDeleteAfterUpload === 'undefined') {
|
|
|
// set a default value no option was set
|
|
|
updatedFilesToDeleteAfterUpload = defaultFilesToDelete;
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know this is listed under "still open", but as-is the type docs are wrong for React Router. Could we either only apply the default glob when the SDK enabled the maps (source map setting was unset), matching the bundler plugin, or if that needs to wait for v12, override the JSDoc for delete in packages/react-router/src/vite/types.ts so it describes the current behaviour?
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
timfish reacted with thumbs up emoji
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Went with the first option: without delete, the SDK now deletes only the maps it turned on itself, as the bundler plugin does.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|