Skip to main content

How can I reduce the bundle size of JS SDKs?

Issue

Sentry's JS related SDKs are adding to the size of my application significantly. Is there any way to reduce their bundle size?

Applies To

  • All SaaS Customers and Self-Hosted Users

  • SDK setup

  • JS related SDKs

Resolution

Sentry's JS SDKs are unified SDKs for javascript so they will inevitably have a large size, however, we are constantly working on reducing it. Some things you can do to reduce their size are:

Other than that, we unfortunately do not have further methods to reduce the bundle size.

Did this answer your question?