Skip to content

feat(nextjs)!: Remove unstable_sentryWebpackPluginOptions - #23372

Draft
chargome wants to merge 1 commit into
charlygomez/js-3358-astro-remove-unstable_sentryvitepluginoptionsfrom
charlygomez/js-3359-nextjs-remove-unstable_sentrywebpackpluginoptions
Draft

feat(nextjs)!: Remove unstable_sentryWebpackPluginOptions#23372
chargome wants to merge 1 commit into
charlygomez/js-3358-astro-remove-unstable_sentryvitepluginoptionsfrom
charlygomez/js-3359-nextjs-remove-unstable_sentrywebpackpluginoptions

Conversation

@chargome

Copy link
Copy Markdown
Member

Removes unstable_sentryWebpackPluginOptions — both the deprecated top-level option and the one nested under webpack.

SentryBuildOptions is hand-rolled rather than built on BuildTimeOptionsBase, so it was missing moduleMetadata and sourcemaps.resolveSourceMap. Both were only reachable through the hatch and are added here, reusing the shared types from core. webpack.reactComponentAnnotation now uses the shared ReactComponentAnnotationOptions too.

Adds a build-time warning covering both spellings. This matters most for Next.js: next.config.js / next.config.mjs get no type checking, so a removed option would otherwise be a silent no-op.

Fixes #23343

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

linear-code Bot commented Aug 12, 2026

Copy link
Copy Markdown

JS-3359

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@chargome
chargome force-pushed the charlygomez/js-3359-nextjs-remove-unstable_sentrywebpackpluginoptions branch from 675f2aa to ab9b3a7 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-3358-astro-remove-unstable_sentryvitepluginoptions August 12, 2026 14:51
@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

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.

nextjs: Remove unstable_sentryWebpackPluginOptions

1 participant