Skip to content

ci: Improve size limit tree shaking handling #16267

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 12, 2025
Merged

ci: Improve size limit tree shaking handling #16267

merged 2 commits into from
May 12, 2025

Conversation

mydea
Copy link
Member

@mydea mydea commented May 12, 2025

By us providing an empty terser plugin we actually get weird results (the browser variant with tree shaking was actually larger then the default one :O). We can just use the defaults here.

I also updated the GH action to use bytes-iec instead of bytes package for rendering the sizes - this is also what size-limit itself uses, so this should be better aligned now. Values may look larger now because it formats as kB now (so factors of 1000) instead of KiB (factors of 1024).

By us providing an empty terser plugin we actually get weird results. We can just use the defaults here.
@mydea mydea requested review from AbhiPrasad and RulaKhaled May 12, 2025 14:24
@mydea mydea self-assigned this May 12, 2025
Copy link
Contributor

github-actions bot commented May 12, 2025

size-limit report 📦

Path Size % Change Change
@sentry/browser 23.96 kB - -
@sentry/browser - with treeshaking flags 23.62 kB -0.67% -159 B 🔽
@sentry/browser (incl. Tracing) 38.2 kB - -
@sentry/browser (incl. Tracing, Replay) 76.31 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 69.34 kB -0.96% -668 B 🔽
@sentry/browser (incl. Tracing, Replay with Canvas) 81.08 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 93.18 kB - -
@sentry/browser (incl. Feedback) 40.76 kB - -
@sentry/browser (incl. sendFeedback) 28.7 kB - -
@sentry/browser (incl. FeedbackAsync) 33.58 kB - -
@sentry/react 25.77 kB - -
@sentry/react (incl. Tracing) 40.2 kB - -
@sentry/vue 28.34 kB - -
@sentry/vue (incl. Tracing) 40 kB - -
@sentry/svelte 23.99 kB - -
CDN Bundle 25.17 kB - -
CDN Bundle (incl. Tracing) 38.22 kB - -
CDN Bundle (incl. Tracing, Replay) 74.1 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 79.53 kB - -
CDN Bundle - uncompressed 73.44 kB - -
CDN Bundle (incl. Tracing) - uncompressed 113.11 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 227.07 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 239.9 kB - -
@sentry/nextjs (client) 41.86 kB - -
@sentry/sveltekit (client) 38.67 kB - -
@sentry/node 159.15 kB - -
@sentry/node - without tracing 97.9 kB -0.42% -405 B 🔽
@sentry/aws-serverless 124.41 kB - -

View base workflow run

@mydea mydea merged commit c64c4fd into develop May 12, 2025
306 of 309 checks passed
@mydea mydea deleted the fn/fix-size-limit branch May 12, 2025 15:07
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.

3 participants