Skip to content

feat(solidstart): Support sourcemaps.upload, injectDebugIds and delete - #26335

Draft
timfish wants to merge 13 commits into
developfrom
feat/solidstart-delete-sourcemaps-after-upload
Draft

timfish wants to merge 13 commits into
developfrom
feat/solidstart-delete-sourcemaps-after-upload

Conversation

@timfish

@timfish timfish commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator

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.

@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

size-limit report 📦

Compared: 0db46b5 (PR test merge using develop at 84df128)

Against: 84df128 (develop) · base run #67645

✅ 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.45 kB - -
@sentry/browser (incl. Feedback) 48.49 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.86 kB - -
@sentry/core/browser 14.46 kB - -
@sentry/node 156.26 kB - -
@sentry/node/import (ESM hook with diagnostics-channel injection) 83.45 kB - -
@sentry/node - without tracing 89.22 kB -0.01% -4 B 🔽
@sentry/node - without channel injection 145.2 kB -0.01% -2 B 🔽
@sentry/aws-serverless 99.85 kB -0.01% -4 B 🔽
@sentry/cloudflare (withSentry) - minified 210.31 kB - -
@sentry/cloudflare (withSentry) 488.28 kB - -
@sentry/cloudflare (withSentry, instrumented CommonJS package) - minified 213.25 kB - -
@sentry/nextjs/cloudflare (withSentry) - minified 235.54 kB - -

View base workflow run

@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Optional E2E tests

All optional checks were successful. 5 successful. See the run.

Successful checks
Check Status
✅ CI: Optional E2E Tests / E2E solidstart-2-tunnel Test (optional) Successful in 39s Details
✅ CI: Optional E2E Tests / E2E solidstart-2 Test (optional) Successful in 52s Details
✅ CI: Optional E2E Tests / E2E solidstart-2 (manual upload) Test (optional) Successful in 39s Details
✅ CI: Optional E2E Tests / E2E solidstart-2 (delete all) Test (optional) Successful in 45s Details
✅ CI: Optional E2E Tests / E2E solidstart-2 (no upload) Test (optional) Successful in 39s Details

@timfish
timfish force-pushed the feat/solidstart-delete-sourcemaps-after-upload branch 2 times, most recently from d4cd675 to 814a202 Compare November 13, 2026 11:34
Base automatically changed from feat/bundler-plugins-delete-without-upload to develop November 13, 2026 13:49
@timfish
timfish force-pushed the feat/solidstart-delete-sourcemaps-after-upload branch from 814a202 to 96468c2 Compare November 13, 2026 13:53
@timfish
timfish marked this pull request as ready for review November 13, 2026 17:36
@timfish
timfish requested a review from a team November 13, 2026 17:36
@timfish 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
@timfish
timfish marked this pull request as draft November 16, 2026 16:47
…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.
@timfish
timfish force-pushed the feat/solidstart-delete-sourcemaps-after-upload branch from 96468c2 to d03f6ca Compare November 17, 2026 22:14
@timfish
timfish changed the base branch from develop to feat/nitro-sourcemap-options November 18, 2026 13:18
@timfish 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
Base automatically changed from feat/nitro-sourcemap-options to develop November 23, 2026 21:24
… HEAD

# Conflicts:
#	packages/core/src/index.ts
#	packages/nitro/src/sourceMaps.ts
#	packages/nitro/test/sourceMapUpload.test.ts

This branch has not been deployed

No deployments
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.

1 participant