Skip to content

feat(astro)!: Remove unstable_sentryVitePluginOptions - #23370

Draft
chargome wants to merge 1 commit into
charlygomez/js-3361-sveltekit-remove-unstable_sentryvitepluginoptionsfrom
charlygomez/js-3358-astro-remove-unstable_sentryvitepluginoptions
Draft

feat(astro)!: Remove unstable_sentryVitePluginOptions#23370
chargome wants to merge 1 commit into
charlygomez/js-3361-sveltekit-remove-unstable_sentryvitepluginoptionsfrom
charlygomez/js-3358-astro-remove-unstable_sentryvitepluginoptions

Conversation

@chargome

Copy link
Copy Markdown
Member

Removes unstable_sentryVitePluginOptions from the Astro integration options — both the top-level option and the deprecated copy inside sourceMapsUploadOptions.

Everything it exposed is reachable as a top-level build option. Adds a build-time warning, routed through Astro's integration logger.

The warning matters more here than elsewhere: SentryOptions intersects Record<string, unknown>, so TypeScript accepts any key and would otherwise leave the removal entirely silent. The key is also excluded from the generic "additional options" warning, which would wrongly tell users to move it into their sentry.client.config file.

Fixes #23342

@chargome chargome self-assigned this Aug 12, 2026
@linear-code

linear-code Bot commented Aug 12, 2026

Copy link
Copy Markdown

JS-3358

@github-actions

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 30.35 kB added added
@sentry/browser - with treeshaking flags 28.52 kB added added
@sentry/browser - with treeshaking flags tracing without tracing 26.85 kB added added
@sentry/browser (incl. Tracing) 49.1 kB added added
@sentry/browser (incl. Tracing + Span Streaming) 49.13 kB added added
@sentry/browser (incl. Tracing, Profiling) 53.9 kB added added
@sentry/browser (incl. Tracing, Replay) 88.45 kB added added
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 77.82 kB added added
@sentry/browser (incl. Tracing, Replay with Canvas) 93.15 kB added added
@sentry/browser (incl. Tracing, Replay, Feedback) 105.84 kB added added
@sentry/browser (incl. Feedback) 47.69 kB added added
@sentry/browser (incl. sendFeedback) 35.18 kB added added
@sentry/browser (incl. FeedbackAsync) 40.33 kB added added
@sentry/browser (incl. Metrics) 31.43 kB added added
@sentry/browser (incl. Logs) 31.66 kB added added
@sentry/browser (incl. Metrics & Logs) 32.34 kB added added
@sentry/react 32.14 kB added added
@sentry/react (incl. Tracing) 51.29 kB added added
@sentry/vue 35.45 kB added added
@sentry/vue (incl. Tracing) 51.07 kB added added
@sentry/svelte 30.38 kB added added
CDN Bundle 32.32 kB added added
CDN Bundle (incl. Tracing) 49.65 kB added added
CDN Bundle (incl. Logs, Metrics) 33.84 kB added added
CDN Bundle (incl. Tracing, Logs, Metrics) 50.94 kB added added
CDN Bundle (incl. Replay, Logs, Metrics) 74.38 kB added added
CDN Bundle (incl. Tracing, Replay) 87.17 kB added added
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 88.45 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback) 93.05 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 94.3 kB added added
CDN Bundle - uncompressed 95.83 kB added added
CDN Bundle (incl. Tracing) - uncompressed 148.93 kB added added
CDN Bundle (incl. Logs, Metrics) - uncompressed 100.42 kB added added
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 152.91 kB added added
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 229.34 kB added added
CDN Bundle (incl. Tracing, Replay) - uncompressed 268.18 kB added added
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 272.15 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 281.88 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 285.83 kB added added
@sentry/nextjs (client) 53.84 kB added added
@sentry/sveltekit (client) 49.48 kB added added
@sentry/core/server 65.93 kB added added
@sentry/core/browser 52.15 kB added added
@sentry/node 119.48 kB added added
@sentry/node/import (ESM hook with diagnostics-channel injection) 0 B added added
@sentry/node - without tracing 83.46 kB added added
@sentry/aws-serverless 92.76 kB added added
@sentry/cloudflare (withSentry) - minified 214.91 kB added added
@sentry/cloudflare (withSentry) 530.62 kB added added

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@chargome
chargome force-pushed the charlygomez/js-3358-astro-remove-unstable_sentryvitepluginoptions branch from 38665cc to 265e7ba Compare August 12, 2026 14:51
@chargome
chargome changed the base branch from charlygomez/js-3355-core-add-build-time-options-for-bundler-plugin-parity to charlygomez/js-3361-sveltekit-remove-unstable_sentryvitepluginoptions August 12, 2026 14:51
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.

astro: Remove unstable_sentryVitePluginOptions

1 participant