Replies: 4 comments
|
Are you minifying the code? If so, how? |
0 replies
|
Yes, I'm using webpack v5 with terser plugin. |
0 replies
|
@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? |
0 replies
|
After closer look it turned out that there were some other modules in the bundle, besides sentry. Thanks for the help anyway! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
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 tofalsein 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?
All reactions