-
Notifications
You must be signed in to change notification settings - Fork 920
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
Sentry JS bundle is surprisingly large #10473
Comments
You can track this better here getsentry/sentry-javascript#4240 We are targeting this release in May. |
Looks like Sentry 7.0.0 is released. Tree shaking tips here: https://sentry-docs-git-lms-treeshake-def-integrations.sentry.dev/platforms/javascript/configuration/tree-shaking/ |
Some promising results here following the tree shaking examples linked above: Uncompressed 336.68kb -> 296.56kb I do see an issue transpiling 7.0 using babel for older browsers however, which needs some investigating. |
Filed getsentry/sentry-javascript#5184 for the transpilation issue |
Thanks for watching over for us @alexgibson! I saw that getsentry/sentry-javascript/issues/5184 is closed too. Making this one a good candidate for "closed" :) |
Description
Webpack gives a warning about the size of our Sentry JS script when compiling:
Thankfully it compresses down to ~24Kb in production, but this is still suprisingly large for an error reporting lib.
It looks like others have also reported this problem, and it's on Sentry's upcomng roadmap to improve:
Filing this issue as a reminder to keep an eye out for updates.
The text was updated successfully, but these errors were encountered: