Bundlesize continues to creep up with every release #10281
Replies: 2 comments 2 replies
-
Hey @jdelStrother - this is because of us deprecated a lot of code that will be removed in v8. For example If you look at #9508 most of the tasks are around removals/dropping support - this should led to some pretty nice bundle wins! |
Beta Was this translation helpful? Give feedback.
-
What tool do you use to do this? If Sentry via codecov offered this (see codecov/engineering-team#655), would you use it? Asking because separately because I'm actively helping build this out to launch in the next couple of months, would appreciate any thoughts!! |
Beta Was this translation helpful? Give feedback.
-
I know you track this in your own releases, but thought it might be interesting to see the change in our app bundlesize each time Sentry gets bumped. From our CI, here's a report on how each sentry version impacted our overall bundlesize, going back to v7.57 (around June 2023):
@sentry/browser
from 7.98.0 to 7.100.1@sentry/browser
from 7.94.1 to 7.98.0@sentry/browser
from 7.93.0 to 7.94.1@sentry/browser
from 7.92.0 to 7.93.0@sentry/browser
from 7.91.0 to 7.92.0@sentry/browser
from 7.88.0 to 7.91.0@sentry/browser
from 7.86.0 to 7.88.0@sentry/browser
from 7.84.0 to 7.86.0@sentry/browser
from 7.81.1 to 7.84.0@sentry/browser
from 7.80.1 to 7.81.1@sentry/browser
from 7.80.0 to 7.80.1@sentry/browser
from 7.77.0 to 7.80.0@sentry/browser
from 7.76.0 to 7.77.0@sentry/browser
from 7.74.1 to 7.76.0@sentry/browser
from 7.74.0 to 7.74.1@sentry/browser
from 7.73.0 to 7.74.0@sentry/browser
from 7.72.0 to 7.73.0@sentry/browser
from 7.71.0 to 7.72.0@sentry/browser
from 7.70.0 to 7.71.0@sentry/browser
from 7.69.0 to 7.70.0@sentry/browser
from 7.68.0 to 7.69.0@sentry/browser
from 7.66.0 to 7.68.0@sentry/browser
from 7.65.0 to 7.66.0@sentry/browser
from 7.64.0 to 7.65.0@sentry/browser
from 7.63.0 to 7.64.0@sentry/browser
from 7.61.1 to 7.63.0@sentry/browser
from 7.60.1 to 7.61.1@sentry/browser
from 7.60.0 to 7.60.1@sentry/browser
from 7.58.1 to 7.60.0@sentry/browser
from 7.57.0 to 7.58.1Which isn't huge, but given we don't use any of the new features that have been added over the last 7 months, does feel a little like 14kb of dead weight. (Obviously a simplification - I'm sure there's a bunch of bug fixes/improvements in there too)
We're using @sentry/browser & @sentry/react in Webpack with tree shaking, with these imports:
I'm not expecting an immediate fix or anything here - just thought it might be a useful datapoint to see the diffs on a realworld app.
It'll be interesting to see how v8 affects this. v7.0 launched with a pretty good bundle size drop, IIRC, but just about every single release since then seems to keep pushing Sentry's not-inconsiderable bundle size up and up.
Beta Was this translation helpful? Give feedback.
All reactions