Skip to content

chore(build): Improve makeProductionReplacePlugin usage#20869

Open
mydea wants to merge 1 commit into
developfrom
fn/small-rollup-ref
Open

chore(build): Improve makeProductionReplacePlugin usage#20869
mydea wants to merge 1 commit into
developfrom
fn/small-rollup-ref

Conversation

@mydea
Copy link
Copy Markdown
Member

@mydea mydea commented May 13, 2026

Small ref. that claude prompted me to do and IMHO it makes sense.

This moves the production replace plugin (only used in browser SDK to strip spotlight for prod) to run via transform, so this runs on module level, not on output chunks.

@mydea mydea self-assigned this May 13, 2026
@github-actions
Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 26.88 kB - -
@sentry/browser - with treeshaking flags 25.32 kB - -
@sentry/browser (incl. Tracing) 44.78 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 46.75 kB - -
@sentry/browser (incl. Tracing, Profiling) 49.77 kB - -
@sentry/browser (incl. Tracing, Replay) 84.41 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 73.84 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 89.11 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 101.75 kB - -
@sentry/browser (incl. Feedback) 44.06 kB - -
@sentry/browser (incl. sendFeedback) 31.69 kB - -
@sentry/browser (incl. FeedbackAsync) 36.8 kB - -
@sentry/browser (incl. Metrics) 27.97 kB - -
@sentry/browser (incl. Logs) 28.11 kB - -
@sentry/browser (incl. Metrics & Logs) 28.8 kB - -
@sentry/react 28.63 kB - -
@sentry/react (incl. Tracing) 47.05 kB - -
@sentry/vue 31.8 kB - -
@sentry/vue (incl. Tracing) 46.65 kB - -
@sentry/svelte 26.9 kB - -
CDN Bundle 29.26 kB - -
CDN Bundle (incl. Tracing) 47.17 kB - -
CDN Bundle (incl. Logs, Metrics) 30.64 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 48.29 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 69.97 kB - -
CDN Bundle (incl. Tracing, Replay) 84.56 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 85.63 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 90.37 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 91.47 kB - -
CDN Bundle - uncompressed 86.08 kB - -
CDN Bundle (incl. Tracing) - uncompressed 141.53 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 90.28 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 145 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 215.1 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 260.24 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 263.69 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 273.94 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 277.38 kB - -
@sentry/nextjs (client) 49.56 kB - -
@sentry/sveltekit (client) 45.27 kB - -
@sentry/node-core 60.84 kB +0.02% +9 B 🔺
@sentry/node 165.98 kB +0.01% +9 B 🔺
@sentry/node - without tracing 73.97 kB +0.01% +6 B 🔺
@sentry/aws-serverless 108.07 kB +0.01% +7 B 🔺
@sentry/cloudflare (withSentry) - minified 170.68 kB - -
@sentry/cloudflare (withSentry) 430.48 kB - -

View base workflow run

@mydea mydea marked this pull request as ready for review May 13, 2026 14:19
@mydea mydea requested review from JPeer264 and chargome May 13, 2026 14:21
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.

1 participant