Description
- Review the documentation: https://docs.sentry.io/
- Search for existing issues: https://github.com/getsentry/sentry-javascript/issues
- Use the latest release: https://github.com/getsentry/sentry-javascript/releases
Package + Version
-
@sentry/browser
-
@sentry/node
Version:
15.19.1 and below
Description
Integrations (actually not just them, everything) should be exported individually using named exports, instead of using namespace objects like Integrations
so unused integrations (or any other thing) won't be included in the bundle. Right now If I include any integrations (like LinkedErrors
integration) I am forced to include every possible integration, which unnecessarily increases the bundle size. Also, in the case of this issue: #2688 it results in loading a server-side module on browser-side (and vice-versa), which is a much bigger problem that not just affects performance but also functionality.
I think this can be done in a minor update via keeping the old Integrations
style exports but directing people to using the new individual exports. I can try to add this with a PR if you want.