Home / Companies / Sentry / Blog / Post Details
Content Deep Dive

Sentry Bundle Size: How We Reduced Replay SDK by 35%

Blog post from Sentry

Post Details
Company
Date Published
Author
Francesco Novy
Word Count
1,580
Company Posts That Month
7
Language
English
Hacker News Points
-
Post removed?
No
Summary

The Sentry JavaScript SDK has made significant efforts to reduce its bundle size by up to 35% through various optimization techniques. The company updated the underlying rrweb package from version 1 to version 2, which brought improvements but also increased the bundle size. To mitigate this, they implemented several strategies, including making build-time flags for tree shaking more accessible, removing unused code and features, such as canvas recording support by default, and updating the compression library to a smaller footprint. Additionally, they made it possible for users to host their own compression worker, reducing the bundled size by 10KB. These efforts resulted in a notable reduction in bundle size while maintaining functionality.

Trends Found in this Post

No tracked trend matches for this post yet.

Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.