Skip to content

fix(solidstart): Support rolldownOptions in instrumentation file plugin - #24863

Merged
Lms24 merged 1 commit into
developfrom
fix/solidstart-rolldown-options
Sep 30, 2026
Merged

Lms24 merged 1 commit into
developfrom
fix/solidstart-rolldown-options

Conversation

@Lms24

@Lms24 Lms24 commented Sep 30, 2026 •

Copy link
Copy Markdown
Member

In Vite 8, rollupOptions is a deprecated alias of rolldownOptions, and Vite ignores rollupOptions when a plugin returns both. The plugin now reads either key and writes the input back only under the one the config already uses, so older Vite keeps working.

Follow-up to #24746 (comment) (i.e. our Vite 8 bump surfaced this. It's not a breaking change. Only future proofing the solid start injection for Vite 8)

…ugin

In Vite 8, `build.rollupOptions` is a deprecated alias of
`build.rolldownOptions`. When a plugin's `config` hook returns both and
they differ, Vite ignores `rollupOptions`. Spreading a config that
already set `rolldownOptions` and then writing `rollupOptions` therefore
dropped the instrumentation file from the build inputs.

Read `rolldownOptions` with a fallback to `rollupOptions`, and write the
input back only under the key the config already uses.

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

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 29.24 kB - -
@sentry/browser - with treeshaking flags 27.5 kB - -
@sentry/browser - with treeshaking flags tracing without tracing 27.4 kB - -
@sentry/browser (incl. Tracing) 51.15 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 51.18 kB - -
@sentry/browser (incl. Tracing, Profiling) 54.18 kB - -
@sentry/browser (incl. Tracing, Replay) 90.76 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 79.86 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 95.46 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 108.41 kB - -
@sentry/browser (incl. Feedback) 46.76 kB - -
@sentry/browser (incl. sendFeedback) 34.3 kB - -
@sentry/browser (incl. FeedbackAsync) 39.41 kB - -
@sentry/browser (incl. Metrics) 30.25 kB - -
@sentry/browser (incl. Logs) 30.53 kB - -
@sentry/browser (incl. Metrics & Logs) 31.2 kB - -
@sentry/react 31.08 kB - -
@sentry/react (incl. Tracing) 53.54 kB - -
@sentry/vue 36.74 kB - -
@sentry/vue (incl. Tracing) 53.7 kB - -
@sentry/svelte 29.26 kB - -
CDN Bundle 31.05 kB - -
CDN Bundle (incl. Tracing) 51.8 kB - -
CDN Bundle (incl. Logs, Metrics) 33.31 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 53.77 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 74.02 kB - -
CDN Bundle (incl. Tracing, Replay) 89.39 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 91.36 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 95.55 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 97.53 kB - -
CDN Bundle - uncompressed 91.7 kB - -
CDN Bundle (incl. Tracing) - uncompressed 154.08 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 98.27 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 160.04 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 227.84 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 273.81 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 279.75 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 287.51 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 293.44 kB - -
@sentry/nextjs (client) 55.78 kB - -
@sentry/sveltekit (client) 51.6 kB - -
@sentry/core/server 39.99 kB - -
@sentry/core/browser 13.63 kB - -
@sentry/node 142.26 kB +0.01% +9 B 🔺
@sentry/node/import (ESM hook with diagnostics-channel injection) 82.88 kB - -
@sentry/node - without tracing 91.25 kB +0.02% +15 B 🔺
@sentry/node - without channel injection 120.66 kB +0.01% +9 B 🔺
@sentry/aws-serverless 99.52 kB +0.01% +7 B 🔺
@sentry/cloudflare (withSentry) - minified 206.69 kB - -
@sentry/cloudflare (withSentry) 514.13 kB - -

View base workflow 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 1 potential issue.

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 2923757. Configure here.

Comment thread packages/solidstart/src/vite/buildInstrumentationFile.ts
@Lms24 Lms24 self-assigned this Sep 30, 2026
@Lms24
Lms24 marked this pull request as ready for review September 30, 2026 08:13
@Lms24
Lms24 requested a review from a team as a code owner September 30, 2026 08:13
@Lms24
Lms24 requested review from nicohrubec and s1gr1d and removed request for a team September 30, 2026 08:13
@Lms24
Lms24 merged commit 4aab1b8 into develop Sep 30, 2026
49 checks passed
@Lms24
Lms24 deleted the fix/solidstart-rolldown-options branch September 30, 2026 08:17
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.

2 participants