Skip to content

feat(sveltekit)!: Remove unstable_sentryVitePluginOptions - #23366

Draft
chargome wants to merge 1 commit into
charlygomez/js-3356-nuxt-remove-unstable_sentrybundlerpluginoptionsfrom
charlygomez/js-3361-sveltekit-remove-unstable_sentryvitepluginoptions
Draft

feat(sveltekit)!: Remove unstable_sentryVitePluginOptions#23366
chargome wants to merge 1 commit into
charlygomez/js-3356-nuxt-remove-unstable_sentrybundlerpluginoptionsfrom
charlygomez/js-3361-sveltekit-remove-unstable_sentryvitepluginoptions

Conversation

@chargome

@chargome chargome commented Aug 12, 2026

Copy link
Copy Markdown
Member

Removes unstable_sentryVitePluginOptions from the SvelteKit plugin options.

Everything it exposed is reachable as a top-level build option. Adds a build-time warning for plain JS configs, where TypeScript cannot catch the removed key.

closes #23345

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

linear-code Bot commented Aug 12, 2026

Copy link
Copy Markdown

JS-3361

@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

@chargome

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 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 825192d. Configure here.

await getSentrySvelteKitPlugins({ org: 'my-org' });

expect(consoleWarnSpy).not.toHaveBeenCalledWith(expect.stringContaining('unstable_'));
});

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Feat PR lacks integration tests

Low Severity

This feat PR only adds unit coverage for the unstable_sentryVitePluginOptions removal warning and option wiring. Per the Testing Conventions review rule, a feat PR needs at least one integration or E2E test that exercises the new behavior.

Fix in Cursor Fix in Web

Triggered by project rule: PR Review Guidelines for Cursor Bot

Reviewed by Cursor Bugbot for commit 825192d. Configure here.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@chargome
chargome force-pushed the charlygomez/js-3361-sveltekit-remove-unstable_sentryvitepluginoptions branch from 825192d to 0b3080e 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-3356-nuxt-remove-unstable_sentrybundlerpluginoptions 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.

sveltekit: Remove unstable_sentryVitePluginOptions

1 participant