Replies: 1 comment 3 replies
-
Can you provide your All our performance monitoring code also seems to be included even when the APIs are not being used. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
We have problems with performance after updating
@sentry/browser
from 6.19.7 to 7.93.0 - increasing sentry chunk on ~50kb gzip. With version 6 we had ~23kb gzip, but now it's ~73kb gzip.The cause of such drawdown in that we use Webpack Module Federation and specify
@sentry/browser
as shared module, so code of sentry is included to chunk fully, even if we don't use it. But with sentry v6 and absence of Replay it wasn't a problem.The piece of our webpack configuration is below
Sentry Replay increases chunk on ~33kb gzip. I have tried to turn off Sentry Replay by sentryWebpackPlugin, but it reduced only 3kb
And in total Sentry replay is still in the sentry chunk
We can't remove sentry from shared, because in that case we get even worse situation with performance, if count total size of javascript at the page.
Do you have any ideas how we can optimize that?
Beta Was this translation helpful? Give feedback.
All reactions