Skip to content

ref: Set preserveModules to true for browser packages #11452

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 5, 2024

Conversation

AbhiPrasad
Copy link
Member

Let's see how much this helps with bundle size.

@AbhiPrasad AbhiPrasad requested a review from timfish April 5, 2024 16:38
Copy link
Contributor

github-actions bot commented Apr 5, 2024

size-limit report 📦

Path Size
@sentry/browser (incl. Tracing, Replay, Feedback) 75.61 KB (-0.85% 🔽)
@sentry/browser (incl. Tracing, Replay) 66.83 KB (-1.04% 🔽)
@sentry/browser (incl. Tracing, Replay with Canvas) 70.69 KB (-0.93% 🔽)
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 60.39 KB (-1.14% 🔽)
@sentry/browser (incl. Tracing) 31.74 KB (-1.42% 🔽)
@sentry/browser (incl. browserTracingIntegration) 31.74 KB (-1.42% 🔽)
@sentry/browser (incl. feedbackIntegration) 30.86 KB (-1.39% 🔽)
@sentry/browser (incl. feedbackModalIntegration) 30.88 KB (-1.74% 🔽)
@sentry/browser (incl. feedbackScreenshotIntegration) 30.89 KB (-1.74% 🔽)
@sentry/browser (incl. sendFeedback) 26.87 KB (-1.82% 🔽)
@sentry/browser 22.08 KB (-1.98% 🔽)
CDN Bundle (incl. Tracing, Replay, Feedback) 71.24 KB (+0.01% 🔺)
CDN Bundle (incl. Tracing, Replay) 65.99 KB (-0.01% 🔽)
CDN Bundle (incl. Tracing) 32.31 KB (+0.01% 🔺)
CDN Bundle 23.75 KB (+0.01% 🔺)
CDN Bundle (incl. Tracing, Replay) - uncompressed 205.57 KB (0%)
CDN Bundle (incl. Tracing) - uncompressed 96.28 KB (0%)
CDN Bundle - uncompressed 70.05 KB (0%)
@sentry/react (incl. Tracing, Replay) 66.95 KB (-0.86% 🔽)
@sentry/react 22.1 KB (-2.03% 🔽)

@AbhiPrasad
Copy link
Member Author

22.08 KB (-1.98% 🔽)

damn lol

@AbhiPrasad AbhiPrasad requested review from a team, mydea and lforst and removed request for a team April 5, 2024 16:44
@AbhiPrasad AbhiPrasad self-assigned this Apr 5, 2024
@AbhiPrasad AbhiPrasad marked this pull request as ready for review April 5, 2024 16:44
@AbhiPrasad
Copy link
Member Author

AbhiPrasad commented Apr 5, 2024

should I do this for node/replay/feedback as well then?

@lforst
Copy link
Contributor

lforst commented Apr 5, 2024

This was more important for cjs server code anyhow. Id also do it for all of the other browser pkgs! 👍🏼

@timfish
Copy link
Collaborator

timfish commented Apr 5, 2024

should I do this for node/replay/feedback as well then?

Yeah, probably a good idea! If anything there are more side effects in the Node SDK.

@AbhiPrasad AbhiPrasad enabled auto-merge (squash) April 5, 2024 20:02
@AbhiPrasad AbhiPrasad merged commit 3c07bcb into develop Apr 5, 2024
@AbhiPrasad AbhiPrasad deleted the abhi-preserve-modules-browser branch April 5, 2024 20:05
AbhiPrasad added a commit that referenced this pull request Apr 8, 2024
Next week I'm going to play around with optimizing feedback/replay
packages as per what we saw in
#11452.

In prep for that work I re-organized size limit and made the limits a
little more sensible.

The size bot comment will be a little messed up because we renamed the
fields, but after we merge should be a lot better.
cadesalaberry pushed a commit to cadesalaberry/sentry-javascript that referenced this pull request Apr 19, 2024
cadesalaberry pushed a commit to cadesalaberry/sentry-javascript that referenced this pull request Apr 19, 2024
Next week I'm going to play around with optimizing feedback/replay
packages as per what we saw in
getsentry#11452.

In prep for that work I re-organized size limit and made the limits a
little more sensible.

The size bot comment will be a little messed up because we renamed the
fields, but after we merge should be a lot better.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants