Skip to content

feat(core): Add build-time options for bundler plugin parity - #23348

Draft
chargome wants to merge 1 commit into
developfrom
charlygomez/js-3355-core-add-build-time-options-for-bundler-plugin-parity
Draft

feat(core): Add build-time options for bundler plugin parity#23348
chargome wants to merge 1 commit into
developfrom
charlygomez/js-3355-core-add-build-time-options-for-bundler-plugin-parity

Conversation

@chargome

@chargome chargome commented Aug 12, 2026

Copy link
Copy Markdown
Member

Prepares core for removing the unstable_sentry*PluginOptions escape hatch.

  • moduleMetadata and sourcemaps.resolveSourceMap become first-class options on BuildTimeOptionsBase
  • ReactComponentAnnotationOptions extracted as a shared type, kept out of BuildTimeOptionsBase since it is React-only.
  • Adds warnOnRemovedBuildOptions for the per-SDK PRs that follow

closes #23338

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@chargome chargome self-assigned this Aug 12, 2026
@linear-code

linear-code Bot commented Aug 12, 2026

Copy link
Copy Markdown

JS-3355

@github-actions

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 30.34 kB +1.69% +503 B 🔺
@sentry/browser - with treeshaking flags 28.51 kB +1.72% +480 B 🔺
@sentry/browser (incl. Tracing) 48.56 kB +2.79% +1.32 kB 🔺
@sentry/browser (incl. Tracing + Span Streaming) 48.57 kB +2.76% +1.3 kB 🔺
@sentry/browser (incl. Tracing, Profiling) 51.45 kB -1.06% -549 B 🔽
@sentry/browser (incl. Tracing, Replay) 87.97 kB +1.6% +1.38 kB 🔺
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 77.35 kB +1.77% +1.34 kB 🔺
@sentry/browser (incl. Tracing, Replay with Canvas) 92.69 kB +1.55% +1.41 kB 🔺
@sentry/browser (incl. Tracing, Replay, Feedback) 105.37 kB +1.37% +1.42 kB 🔺
@sentry/browser (incl. Feedback) 47.66 kB +1.12% +524 B 🔺
@sentry/browser (incl. sendFeedback) 35.16 kB +1.42% +492 B 🔺
@sentry/browser (incl. FeedbackAsync) 40.31 kB +1.35% +535 B 🔺
@sentry/browser (incl. Metrics) 31.31 kB +1.3% +401 B 🔺
@sentry/browser (incl. Logs) 31.58 kB +1.39% +432 B 🔺
@sentry/browser (incl. Metrics & Logs) 32.25 kB +1.38% +438 B 🔺
@sentry/react 32.13 kB +1.61% +508 B 🔺
@sentry/react (incl. Tracing) 50.77 kB +2.54% +1.26 kB 🔺
@sentry/vue 35.35 kB +1.23% +428 B 🔺
@sentry/vue (incl. Tracing) 50.51 kB +2.59% +1.27 kB 🔺
@sentry/svelte 30.37 kB +1.72% +511 B 🔺
CDN Bundle 31.64 kB -0.73% -230 B 🔽
CDN Bundle (incl. Tracing) 48.89 kB +2.85% +1.35 kB 🔺
CDN Bundle (incl. Logs, Metrics) 33.86 kB +1.35% +451 B 🔺
CDN Bundle (incl. Tracing, Logs, Metrics) 50.85 kB +3.89% +1.9 kB 🔺
CDN Bundle (incl. Replay, Logs, Metrics) 74.38 kB +2.24% +1.63 kB 🔺
CDN Bundle (incl. Tracing, Replay) 86.48 kB +1.53% +1.29 kB 🔺
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 88.34 kB +2.14% +1.84 kB 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) 92.19 kB +1.3% +1.18 kB 🔺
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 94.16 kB +2.01% +1.85 kB 🔺
CDN Bundle - uncompressed 93.94 kB -0.72% -680 B 🔽
CDN Bundle (incl. Tracing) - uncompressed 146.76 kB +3.27% +4.64 kB 🔺
CDN Bundle (incl. Logs, Metrics) - uncompressed 100.34 kB +1.11% +1.1 kB 🔺
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 152.56 kB +4.43% +6.46 kB 🔺
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 229.28 kB +2.39% +5.34 kB 🔺
CDN Bundle (incl. Tracing, Replay) - uncompressed 266.02 kB +1.78% +4.65 kB 🔺
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 271.81 kB +2.44% +6.46 kB 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 279.72 kB +1.69% +4.64 kB 🔺
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 285.49 kB +2.32% +6.46 kB 🔺
@sentry/nextjs (client) 53.29 kB +2.32% +1.21 kB 🔺
@sentry/sveltekit (client) 48.98 kB +2.67% +1.27 kB 🔺
@sentry/core/server 65.56 kB +0.06% +33 B 🔺
@sentry/core/browser 51.91 kB +0.06% +30 B 🔺
@sentry/node 117.97 kB -1.89% -2.27 kB 🔽
@sentry/node/import (ESM hook with diagnostics-channel injection) 0 B added added
@sentry/node - without tracing 82.09 kB -1.91% -1.59 kB 🔽
@sentry/aws-serverless 91.5 kB -0.93% -852 B 🔽
@sentry/cloudflare (withSentry) - minified 214.07 kB -2.1% -4.58 kB 🔽
@sentry/cloudflare (withSentry) 528.89 kB -1.85% -9.96 kB 🔽
@sentry/browser - with treeshaking flags tracing without tracing 26.85 kB added added

View base workflow run

@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.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 3d866c1. Configure here.

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.

core: Add build-time options for bundler plugin parity

1 participant