Skip to content
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

build(size-limit): Consistently use webpack #9910

Merged
merged 2 commits into from
Dec 19, 2023
Merged

Conversation

mydea
Copy link
Member

@mydea mydea commented Dec 19, 2023

We've been using esbuild (default, from@size-limit/preset-small-lib) for most jobs, but webpack for the one with custom config, which is a bit inconsistent.

This now updates this to always use webpack, which should be more consistent...

If we eventually get rid of the custom webpack config (e.g. when we merge this or something like it: #9826), we can revert this back to use esbuild everywhere.

@mydea mydea requested review from lforst and Lms24 December 19, 2023 12:33
@mydea mydea self-assigned this Dec 19, 2023
Copy link
Member

@Lms24 Lms24 left a comment

Choose a reason for hiding this comment

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

Just to check - there's nothing we need to adjust in .size-limit.js?

Copy link
Contributor

github-actions bot commented Dec 19, 2023

size-limit report 📦

Path Size
@sentry/browser (incl. Tracing, Replay, Feedback) - Webpack (gzipped) 75.18 KB (+0.06% 🔺)
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 66.62 KB (+0.07% 🔺)
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) 60.21 KB (+0.08% 🔺)
@sentry/browser (incl. Tracing) - Webpack (gzipped) 31.27 KB (+0.15% 🔺)
@sentry/browser (incl. Feedback) - Webpack (gzipped) 29.89 KB (+0.16% 🔺)
@sentry/browser - Webpack (gzipped) 21.57 KB (+0.21% 🔺)
@sentry/browser (incl. Tracing, Replay, Feedback) - ES6 CDN Bundle (gzipped) 72.6 KB (+0.05% 🔺)
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 64.31 KB (+0.05% 🔺)
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 30.57 KB (+0.11% 🔺)
@sentry/browser - ES6 CDN Bundle (gzipped) 22.62 KB (+0.14% 🔺)
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 202.17 KB (+0.01% 🔺)
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 92.27 KB (+0.02% 🔺)
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 67.32 KB (+0.02% 🔺)
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 33.43 KB (+0.1% 🔺)
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 66.97 KB (+0.07% 🔺)
@sentry/react - Webpack (gzipped) 21.61 KB (+0.21% 🔺)
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 83.75 KB (+0.06% 🔺)
@sentry/nextjs Client - Webpack (gzipped) 48.43 KB (+0.1% 🔺)
@sentry-internal/feedback - Webpack (gzipped) 16.22 KB (+0.28% 🔺)

@mydea mydea force-pushed the fn/size-limit-webpack branch from 17d10e6 to 3c39d8f Compare December 19, 2023 13:01
@mydea
Copy link
Member Author

mydea commented Dec 19, 2023

Just to check - there's nothing we need to adjust in .size-limit.js?

I noticed that in the new major it defaults to brotli compression, so need to specifically opt out of this if we want to test uncompressed sizes. Which also brings up the general point, should we use brotli instead of gzip for all compressed sizes here? 🤔 it is quite a bit smaller - e.g. ES6 full CDN bundle is 56kb vs 64kb.

We've been using esbuild (default, from`@size-limit/preset-small-lib`) for most jobs, but webpack for the one with custom config, which is a bit inconsistent.

This now updates this to always use webpack.
@mydea mydea force-pushed the fn/size-limit-webpack branch from 3c39d8f to b7179af Compare December 19, 2023 13:25
@mydea mydea merged commit 9d8f055 into develop Dec 19, 2023
95 checks passed
@mydea mydea deleted the fn/size-limit-webpack branch December 19, 2023 14:17
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.

2 participants