You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
🐛 Datadog browser SDK not fully tree-shakable due to side effects #4088
We are using the @datadog/browser-logs, @datadog/browser-rum npm libraries and noticed that they are not being properly tree-shaken in our build. As a result, a large amount of unused code (thousands of lines) is included in the final bundle.
The root cause appears to be side effects introduced at module scope. For example, in the following file:
Activity
BenoitZugmeyer commentedon Feb 2, 2026
Thank you for your feedback. This is a known limitation and we are looking into changing this pattern in a future major version.