sentry-javascript: Bug: Bundling with webpack produces to big bundle
Bundling the raven-js lib 3.22.3 using webpack and using it like this:
import { install } from "sentry"
install(...)
produces the following bundle:

Compared to the minimized file dist/raven.min.js that is 28kib the size in my bundled version seems to be to big.
Also look at the treemap:

This seems to be a bug how the ES6 modules are bundled.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 1
- Comments: 15 (6 by maintainers)
Hi, this is causing us issues adopting sentry in new projects and prevents us from updating the SDK.
Excuse the large screenshots, but we’re seeing an increase of about 2.6 times in transmitted size and 3.6 times in parsed size which would seriously impact our javascript budgets.
I’d like to request that this is reopened and the Needs Reproduction label is dropped.
We’d also like to thank you for continuing to support
raven-jsas its’ smaller bundle size allows us to continue monitoring errors without impacting performance for users.23kB is an accurate measurement right now. We’ll start on working to reduce it once we iron out all the details of the 4.0.0