Skip to content

feat(solidstart): Add SolidStart 2 support - #23090

Open
chargome wants to merge 3 commits into
developfrom
feat/solidstart-2-support
Open

feat(solidstart): Add SolidStart 2 support#23090
chargome wants to merge 3 commits into
developfrom
feat/solidstart-2-support

Conversation

@chargome

@chargome chargome commented Aug 6, 2026

Copy link
Copy Markdown
Member

SolidStart 2 drops vinxi and app.config.ts, so withSentry has nothing to wrap — the only integration surface left is a Vite plugin. Adds sentrySolidStart() under a new @sentry/solidstart/vite subexport. The SolidStart 1 path is untouched.

It contributes the @sentry/nitro module, the orchestrion build-time transform, and client source map upload. Sentry is initialized from a user-authored Nitro plugin — build-time instrumentation means no --import preload and no instrumentation file copied into the build output.

Also widens the @solidjs/start peer to ^1.0.0 || ^2.0.0 and adds a default export condition, without which the package does not resolve on non-Node runtimes.

Fixes #23029

SolidStart 2 drops vinxi and `app.config.ts`, so `withSentry` has nothing to wrap — the
only integration surface left is a Vite plugin. Add `sentrySolidStart()` under a new
`@sentry/solidstart/vite` subexport. The SolidStart 1 path is untouched.

It contributes the `@sentry/nitro` module, the orchestrion build-time transform, and
client source map upload. Sentry is initialized from a user-authored Nitro plugin —
build-time instrumentation means no `--import` preload and no instrumentation file
copied into the build output.

Also widen the `@solidjs/start` peer to `^1.0.0 || ^2.0.0` and add a `default` export
condition, without which the package does not resolve on non-Node runtimes.

Fixes #23029
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@chargome chargome self-assigned this Aug 6, 2026
@github-actions

github-actions Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 30.15 kB - -
@sentry/browser - with treeshaking flags 28.35 kB - -
@sentry/browser - with treeshaking flags tracing without tracing 26.66 kB - -
@sentry/browser (incl. Tracing) 47.56 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 47.57 kB - -
@sentry/browser (incl. Tracing, Profiling) 52.31 kB - -
@sentry/browser (incl. Tracing, Replay) 86.93 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 76.36 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 91.66 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 104.29 kB - -
@sentry/browser (incl. Feedback) 47.48 kB - -
@sentry/browser (incl. sendFeedback) 34.98 kB - -
@sentry/browser (incl. FeedbackAsync) 40.13 kB - -
@sentry/browser (incl. Metrics) 31.22 kB - -
@sentry/browser (incl. Logs) 31.44 kB - -
@sentry/browser (incl. Metrics & Logs) 32.13 kB - -
@sentry/react 31.95 kB - -
@sentry/react (incl. Tracing) 49.81 kB - -
@sentry/vue 35.25 kB - -
@sentry/vue (incl. Tracing) 49.57 kB - -
@sentry/svelte 30.17 kB - -
CDN Bundle 32.16 kB - -
CDN Bundle (incl. Tracing) 47.83 kB - -
CDN Bundle (incl. Logs, Metrics) 33.7 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 49.21 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 73.03 kB - -
CDN Bundle (incl. Tracing, Replay) 85.47 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 86.79 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 91.29 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 92.61 kB - -
CDN Bundle - uncompressed 95.33 kB - -
CDN Bundle (incl. Tracing) - uncompressed 142.84 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 99.96 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 146.82 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 224.66 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 262.09 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 266.06 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 275.8 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 279.75 kB - -
@sentry/nextjs (client) 52.39 kB - -
@sentry/sveltekit (client) 48.01 kB - -
@sentry/core/server 65.58 kB - -
@sentry/core/browser 51.82 kB - -
@sentry/node 119.28 kB -0.01% -1 B 🔽
@sentry/node/import (ESM hook with diagnostics-channel injection) 0 B added added
@sentry/node - without tracing 83.3 kB - -
@sentry/aws-serverless 92.61 kB - -
@sentry/cloudflare (withSentry) - minified 212.61 kB - -
@sentry/cloudflare (withSentry) 524.89 kB - -

View base workflow run

Nothing in the package imports `nitro` directly — only `nitropack` for the SolidStart 1
path, and `@sentry/nitro` for the rest. Carrying it bumped the hoisted `nitro` version
and pulled 15 rolldown platform binaries into the lockfile for no benefit.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@chargome
chargome marked this pull request as ready for review August 6, 2026 12:23
@chargome
chargome requested a review from a team as a code owner August 6, 2026 12:23
@chargome
chargome requested review from andreiborza, nicohrubec and s1gr1d and removed request for a team and s1gr1d August 6, 2026 12:23
@chargome

chargome commented Aug 6, 2026

Copy link
Copy Markdown
Member Author

bugbot run

@cursor cursor Bot left a comment

Copy link
Copy Markdown

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 2 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit c5c853a. Configure here.

Comment thread packages/solidstart/src/vite/sentrySolidStart.ts
Comment thread packages/solidstart/src/vite/sentrySolidStart.ts
…ite hook

The plugin returned a copy of the user's whole `nitro` config. Vite concatenates arrays when
merging a `config` hook's return value, so every entry the user had in `nitro.modules`,
`nitro.plugins` and the like was duplicated before Nitro ever saw it.

Hand `setupSentryNitroModule` only the keys it reads, so what comes back is purely Sentry's
additions and Vite's merge appends them. Covered by a test that runs the real
`mergeConfig`, which the previous test missed by asserting on the hook's return value alone.

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

@andreiborza andreiborza left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice

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.

SolidStart v2 support in @sentry/solidstart

2 participants