Replies: 4 comments
-
Are you minifying the code? If so, how? |
Beta Was this translation helpful? Give feedback.
-
Yes, I'm using webpack v5 with terser plugin. |
Beta Was this translation helpful? Give feedback.
-
@ingria we use the https://github.com/ai/size-limit via https://github.com/getsentry/sentry-javascript/blob/develop/.size-limit.js to generate the stats around bundle size. Are you able to provide a minimal webpack 5 reproduction that shows this not being true? |
Beta Was this translation helpful? Give feedback.
-
After closer look it turned out that there were some other modules in the bundle, besides sentry. Thanks for the help anyway! |
Beta Was this translation helpful? Give feedback.
-
I've been trying to bundle sentry using webpack, but I cannot achive the numbers shown on the releases page.
For example, @sentry/browser - Webpack (gzipped) should weight 21.95 KB, but the best case I've achieved is 48.3 KB (compressed with zopfli). That's more than two times larger.
I'm using and the following code:
__SENTRY_DEBUG__
is set tofalse
in my webpack config. Browserlist is set to default (last 2 versions).How do I get the bundle size of 22 KB? How does the releases page calculate that number?
Beta Was this translation helpful? Give feedback.
All reactions