GeezerVison is showing github.com — feat(solidstart): Support `sourcemaps.upload`, `injectDebugIds` and `delete` by timfish · Pull Request #26335 · getsentry/sentry-javascript
Conversation
timfish
commented
Nov 13, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Stacked on #26584, which applies the new options to the server maps of SolidStart 2.
The SDK no longer deletes the maps it turned on with globs. It passes deleteSourcemapsAfterUpload and sdkEnabledSourceMaps to the bundler plugin, which removes the maps the SDK turned on, also when no upload runs.
The SDK also passes sourcemaps.upload, injectDebugIds and delete to the plugin. With build.sourcemap unset, Sentry turns on hidden maps only when it uploads them or when delete: false keeps them.
Fixes:
- SolidStart 2 without an upload, for example without an auth token, no longer leaves the client maps in
.output/public. The glob ./**/*.map skipped dot folders.
- SolidStart 1 no longer deletes every map in every top-level dot folder (
.*/**/*.map).
- SolidStart 2 no longer runs
./**/*.map from the working directory, which could also delete maps in node_modules.
Other behaviour changes:
- SolidStart 2 with
build.sourcemap unset: maps that an output turns on with its own rollupOptions.output.sourcemap or rolldownOptions.output.sourcemap are now removed.
Still open, until the old options are removed in v12:
disable: true leaves out the whole Sentry plugin, so release injection, release creation and bundleSizeOptimizations stop too. upload: false and injectDebugIds: false keep the plugin.
- On SolidStart 1,
disable: 'disable-upload' deletes the maps the SDK turned on, so nothing is left for a manual upload. upload: false with delete: false keeps them.
E2E: solidstart and solidstart-2 get "no upload", "manual upload" and "delete all" variants. The solidstart-2 client map assertion is now strict.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
size-limit report 📦
Compared: 52b3ada (PR test merge using develop at 4300c0c)
Against: 4300c0c (develop) · base run #67756
✅ Baseline matches: this diff contains only this PR's changes.
| Path |
Size |
% Change |
Change |
| @sentry/browser |
30.54 kB |
- |
- |
| @sentry/browser - with treeshaking flags |
28.73 kB |
- |
- |
| @sentry/browser - with treeshaking flags tracing without tracing |
28.6 kB |
- |
- |
| @sentry/browser (incl. Tracing) |
53.67 kB |
- |
- |
| @sentry/browser (incl. Tracing Core) |
40.59 kB |
- |
- |
| @sentry/browser (incl. Tracing + Span Streaming) |
53.67 kB |
- |
- |
| @sentry/browser (incl. Tracing, Profiling) |
56.57 kB |
- |
- |
| @sentry/browser (incl. Tracing, Replay) |
93.54 kB |
- |
- |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags |
82.41 kB |
- |
- |
| @sentry/browser (incl. Tracing, Replay with Canvas) |
97.93 kB |
- |
- |
| @sentry/browser (incl. Tracing, Replay, Feedback) |
111.34 kB |
- |
- |
| @sentry/browser (incl. Feedback) |
48.4 kB |
- |
- |
| @sentry/browser (incl. sendFeedback) |
31.11 kB |
- |
- |
| @sentry/browser (incl. FeedbackAsync) |
36.17 kB |
- |
- |
| @sentry/browser (incl. Metrics) |
31.86 kB |
- |
- |
| @sentry/browser (incl. Logs) |
32.13 kB |
- |
- |
| @sentry/browser (incl. Metrics & Logs) |
32.8 kB |
- |
- |
| @sentry/react |
32.56 kB |
- |
- |
| @sentry/react (incl. Tracing) |
56.38 kB |
- |
- |
| @sentry/vue |
38.75 kB |
- |
- |
| @sentry/vue (incl. Tracing) |
56.68 kB |
- |
- |
| @sentry/svelte |
30.57 kB |
- |
- |
| @sentry/effect (client) |
42.25 kB |
- |
- |
| @sentry/effect (client, incl. Tracing) |
49.41 kB |
- |
- |
| @sentry/effect (client, incl. Tracing, Logs, Metrics) |
59.3 kB |
- |
- |
| @sentry/remix (Remix 3 client bundle) |
59.39 kB |
- |
- |
| CDN Bundle |
32.54 kB |
- |
- |
| CDN Bundle (incl. Tracing) |
54.15 kB |
- |
- |
| CDN Bundle (incl. Logs, Metrics) |
35.27 kB |
- |
- |
| CDN Bundle (incl. Tracing, Logs, Metrics) |
56.63 kB |
- |
- |
| CDN Bundle (incl. Replay, Logs, Metrics) |
76.16 kB |
- |
- |
| CDN Bundle (incl. Tracing, Replay) |
91.89 kB |
- |
- |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) |
94.43 kB |
- |
- |
| CDN Bundle (incl. Tracing, Replay, Feedback) |
97.35 kB |
- |
- |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) |
99.81 kB |
- |
- |
| CDN Bundle - uncompressed |
94.92 kB |
- |
- |
| CDN Bundle (incl. Tracing) - uncompressed |
160.25 kB |
- |
- |
| CDN Bundle (incl. Logs, Metrics) - uncompressed |
103.26 kB |
- |
- |
| CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed |
167.88 kB |
- |
- |
| CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed |
233.5 kB |
- |
- |
| CDN Bundle (incl. Tracing, Replay) - uncompressed |
280.54 kB |
- |
- |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed |
288.17 kB |
- |
- |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed |
292.47 kB |
- |
- |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed |
300.09 kB |
- |
- |
| @sentry/nextjs (client) |
60.09 kB |
- |
- |
| @sentry/sveltekit (client) |
55.03 kB |
- |
- |
| @sentry/core/server |
45.83 kB |
- |
- |
| @sentry/core/browser |
14.46 kB |
- |
- |
| @sentry/node |
156.36 kB |
-0.01% |
-3 B 🔽 |
| @sentry/node/import (ESM hook with diagnostics-channel injection) |
83.45 kB |
- |
- |
| @sentry/node - without tracing |
89.23 kB |
-0.01% |
-5 B 🔽 |
| @sentry/node - without channel injection |
145.29 kB |
-0.01% |
-3 B 🔽 |
| @sentry/aws-serverless |
99.87 kB |
-0.01% |
-4 B 🔽 |
| @sentry/cloudflare (withSentry) - minified |
211.93 kB |
- |
- |
| @sentry/cloudflare (withSentry) |
491.77 kB |
- |
- |
| @sentry/cloudflare (withSentry, instrumented CommonJS package) - minified |
214.88 kB |
- |
- |
| @sentry/nextjs/cloudflare (withSentry) - minified |
237.17 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. 2 not successful, 73 successful. See the run.
|
Check |
Status |
|
| ❌ |
CI: Optional E2E Tests / E2E nextjs-16-tunnel (cloudflare) Test (optional) |
Failing after 1m |
Details |
| ❌ |
CI: Optional E2E Tests / E2E react-router-7-framework-instrumentation Test (optional) |
Failing after 1m |
Details |
Successful checks
|
Check |
Status |
|
| ✅ |
CI: Optional E2E Tests / E2E cloudflare-flue-send-to-sentry Test (optional) |
Successful in 2m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E gen-ai-libraries (cloudflare) Test (optional) |
Successful in 45s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E cloudflare-mastra Test (optional) |
Successful in 48s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E nextjs-16 (vinext) Test (optional) |
Successful in 1m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E cloudflare-think (ai v6) Test (optional) |
Successful in 55s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E nextjs-15 (latest) Test (optional) |
Successful in 2m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E cloudflare-pi-durable (latest) Test (optional) |
Successful in 43s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E nextjs-16 (cloudflare, latest) Test (optional) |
Successful in 1m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E cloudflare-workers-send-to-sentry Test (optional) |
Successful in 3m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E express-5 (bun) Test (optional) |
Successful in 1m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E cloudflare-workers-without-tracing-send-to-sentry Test (optional) |
Successful in 1m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E nestjs-12 (bun) Test (optional) |
Successful in 53s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E nextjs-14-supabase Test (optional) |
Successful in 2m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E node-fastify-6 Test (optional) |
Successful in 32s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E node-mastra Test (optional) |
Successful in 1m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E cloudflare-think Test (optional) |
Successful in 55s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E node-express-mcp-v1 Test (optional) |
Successful in 29s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E astro-7 (static trace lifecycle) Test (optional) |
Successful in 1m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E cloudflare-pi-durable Test (optional) |
Successful in 45s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E node-flue (latest) Test (optional) |
Successful in 2m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E node-eve Test (optional) |
Successful in 1m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E nestjs-12 (deno) Test (optional) |
Successful in 1m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E debug-id-sourcemaps Test (optional) |
Successful in 37s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E express-5 (cloudflare) Test (optional) |
Successful in 1m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E cloudflare-agent Test (optional) |
Successful in 40s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E astro-7 Test (optional) |
Successful in 1m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E nextjs-16 (vinext, bun) Test (optional) |
Successful in 1m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E node-eve (content off) Test (optional) |
Successful in 1m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E gen-ai-libraries (latest) Test (optional) |
Successful in 1m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E nextjs-15 (turbo) Test (optional) |
Successful in 1m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E nuxt-5-sourcemaps (static / nuxt generate) Test (optional) |
Successful in 34s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E node-eve (0.x) Test (optional) |
Successful in 1m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E node-pi-durable (latest) Test (optional) |
Successful in 39s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E node-express-mcp-v2 Test (optional) |
Successful in 31s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E deno (latest) Test (optional) |
Successful in 1m |
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-express-mcp-v2 (MCP SDK OpenTelemetry) Test (optional) |
Successful in 41s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E nuxt-5 Test (optional) |
Successful in 1m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E nuxt-5-cloudflare Test (optional) |
Successful in 35s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E node-eve (orchestrion) Test (optional) |
Successful in 1m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E nuxt-5-sourcemaps (client source maps enabled by Sentry) Test (optional) |
Successful in 39s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E react-send-to-sentry Test (optional) |
Successful in 2m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E node-openai-decisions Test (optional) |
Successful in 30s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E solid-2-ssr (cloudflare) Test (optional) |
Successful in 36s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E solidstart-2 Test (optional) |
Successful in 58s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E node-flue Test (optional) |
Successful in 2m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E express-5 (deno) Test (optional) |
Successful in 1m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E node-mastra (latest) Test (optional) |
Successful in 1m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E gen-ai-libraries Test (optional) |
Successful in 43s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E nuxt-5-sourcemaps Test (optional) |
Successful in 40s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E nuxt-4-sourcemaps (Vite server) Test (optional) |
Successful in 36s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E node-express-send-to-sentry Test (optional) |
Successful in 1m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E node-pi-durable Test (optional) |
Successful in 39s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E nuxt-5 (kv-cache) Test (optional) |
Successful in 1m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E nuxt-5-sourcemaps (client source maps kept) Test (optional) |
Successful in 42s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E node-openai-decisions (latest) Test (optional) |
Successful in 27s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E nuxt-5-sourcemaps (no upload) Test (optional) |
Successful in 38s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E nuxt-5-tunnel (cloudflare) Test (optional) |
Successful in 31s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E nestjs-12 (cloudflare) Test (optional) |
Successful in 39s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E solidstart-2 (no upload) Test (optional) |
Successful in 37s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E nuxt-5-tunnel Test (optional) |
Successful in 45s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E nuxt-5 (development) Test (optional) |
Successful in 1m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E solidstart-2-tunnel Test (optional) |
Successful in 46s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E tanstackstart-react-sourcemaps Test (optional) |
Successful in 31s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E solidstart-2 (manual upload) Test (optional) |
Successful in 41s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E tanstackstart-react-sourcemaps (no upload) Test (optional) |
Successful in 36s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E vue-3 (no Options API) Test (optional) |
Successful in 52s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E tanstackstart-react-sourcemaps (delete all) Test (optional) |
Successful in 30s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E solidstart-2 (delete all) Test (optional) |
Successful in 51s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E tanstackstart-react (latest) Test (optional) |
Successful in 1m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E tanstackstart-react-cloudflare Test (optional) |
Successful in 38s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E vinext-cf-workers (workers cache) Test (optional) |
Successful in 35s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E tanstackstart-react-sourcemaps (manual upload) Test (optional) |
Successful in 33s |
Details |
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
timfish
changed the title
feat(solidstart): Delete source maps through the bundler plugin instead of a glob
feat(solidstart): Delete source maps through the bundler plugin instead of globs
Nov 14, 2026
…ad of a glob
The SDK enables hidden source maps when the app sets none and now passes
`deleteSourcemapsAfterUpload: true` and `sdkEnabledSourceMaps` to the
bundler plugin for those builds, on SolidStart 1 and 2. This replaces the
default `.*/**/*.map` and `./**/*.map` globs. Maps now also go away when
no upload runs, and when a user's `assets` or `ignore` leaves chunks out.
The SDK only answers for the top-level `build.sourcemap`. Nitro gives its
`nitro` and `ssr` environments their own setting, and `@sentry/nitro`
uploads and deletes those maps after the build, so they stay with it.
The enable plugin moves before the Sentry plugin, because the bundler
plugin decides in its own `config` hook. Maps the user enabled keep
today's behaviour. With `disable: 'disable-upload'`, SolidStart 1 still
removes the maps the SDK turned on, and SolidStart 2 keeps them. A user's
own `deleteSourcemapsAfterUpload` passes through to every environment,
and a user's own `filesToDeleteAfterUpload` runs as well.
…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.
…te-sourcemaps-after-upload
timfish
changed the title
feat(solidstart): Delete source maps through the bundler plugin instead of globs
feat(solidstart): Support sourcemaps.upload, injectDebugIds and delete
Nov 18, 2026
…te-sourcemaps-after-upload
…l variants
The app is optional, so the test matrix only accepts its variants in `optionalVariants`.
… HEAD
# Conflicts:
# packages/core/src/index.ts
# packages/nitro/src/sourceMaps.ts
# packages/nitro/test/sourceMapUpload.test.ts
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 using default effort 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 b09ec81. Configure here.
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.
Comment on lines
+57
to
+58
|
|
sourcemaps?.deleteSourcemapsAfterUpload ??
|
|
|
(sdkEnabledSourceMaps(environment) && !keepSdkEnabledSourceMaps ? true : undefined),
|
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.
Should we maybe still check filesToDeleteAfterUpload here? So in case a user set this to [], we don't delete the maps. Right now, we would delete the maps. Or just document it. But the other SDKs still check for filesToDeleteAfterUpload === undefined.
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.
Yes, good find. I'll make them match!
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.
timfish
added a commit
that referenced
this pull request
Nov 25, 2026
…out upload credentials (#26841)
When the user sets no source map option, Sentry turns on hidden source
maps so the bundler plugin can upload them. Astro, Nuxt and TanStack
Start skip this when the auth token, org or project is missing, because
the plugin uploads nothing without them. Next.js, Remix, SvelteKit and
Gatsby still turned maps on, so a build without credentials wrote map
files that nothing uploaded. These four now skip it too.
`sourcemaps.delete: false` still turns maps on for a manual upload.
The check moves into `@sentry/bundler-plugins/core` and shares the
plugin's own credential rules. It also reads `.env.sentry-build-plugin`,
because Next.js decides before it creates the plugin, and the plugin is
what loads that file.
React Router is left out because it uploads with the Sentry CLI, which
also reads `.sentryclirc`, stored login tokens and `SENTRY_DSN`.
SolidStart follows after #26335.
The no-upload variant of `remix-sourcemaps` covers a build without
credentials.
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.
|