Skip to content

ref: Avoid enum usage #16922

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
Jul 11, 2025
Merged

ref: Avoid enum usage #16922

merged 1 commit into from
Jul 11, 2025

Conversation

mydea
Copy link
Member

@mydea mydea commented Jul 11, 2025

Apart of directly vendored code, we should avoid enum, as it has bundle size impact.

Also somehow part of #16846

Apart of directly vendored code, we should avoid `enum`, as it has bundle size impact.
@mydea mydea requested review from chargome and andreiborza July 11, 2025 07:45
@mydea mydea self-assigned this Jul 11, 2025
Copy link
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 23.88 kB -0.37% -88 B 🔽
@sentry/browser - with treeshaking flags 22.35 kB -0.37% -81 B 🔽
@sentry/browser (incl. Tracing) 39.72 kB -0.22% -86 B 🔽
@sentry/browser (incl. Tracing, Replay) 77.85 kB -0.1% -77 B 🔽
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 67.66 kB -0.12% -80 B 🔽
@sentry/browser (incl. Tracing, Replay with Canvas) 82.54 kB -0.1% -82 B 🔽
@sentry/browser (incl. Tracing, Replay, Feedback) 94.64 kB -0.1% -93 B 🔽
@sentry/browser (incl. Feedback) 40.57 kB -0.24% -96 B 🔽
@sentry/browser (incl. sendFeedback) 28.56 kB -0.3% -85 B 🔽
@sentry/browser (incl. FeedbackAsync) 33.46 kB -0.25% -83 B 🔽
@sentry/react 25.61 kB -0.27% -69 B 🔽
@sentry/react (incl. Tracing) 41.69 kB -0.22% -91 B 🔽
@sentry/vue 28.31 kB -0.28% -79 B 🔽
@sentry/vue (incl. Tracing) 41.52 kB -0.19% -79 B 🔽
@sentry/svelte 23.9 kB -0.34% -81 B 🔽
CDN Bundle 25.16 kB -0.29% -73 B 🔽
CDN Bundle (incl. Tracing) 39.38 kB -0.24% -92 B 🔽
CDN Bundle (incl. Tracing, Replay) 75.36 kB -0.12% -88 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback) 80.82 kB -0.1% -78 B 🔽
CDN Bundle - uncompressed 73.5 kB -0.25% -180 B 🔽
CDN Bundle (incl. Tracing) - uncompressed 117.09 kB -0.16% -180 B 🔽
CDN Bundle (incl. Tracing, Replay) - uncompressed 231.26 kB -0.08% -180 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 244.08 kB -0.08% -180 B 🔽
@sentry/nextjs (client) 43.31 kB -0.18% -76 B 🔽
@sentry/sveltekit (client) 40.18 kB -0.23% -90 B 🔽
@sentry/node 167.58 kB -0.04% -59 B 🔽
@sentry/node - without tracing 100.3 kB -0.06% -60 B 🔽
@sentry/aws-serverless 128.41 kB -0.06% -77 B 🔽

View base workflow run

@mydea mydea merged commit 9c7c6bf into develop Jul 11, 2025
172 checks passed
@mydea mydea deleted the fn/avoid-enum branch July 11, 2025 08:05
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.

2 participants