Skip to content

ref(browser): Extract private methods from breadcrumbs #4296

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 3 commits into from
Dec 15, 2021

Conversation

AbhiPrasad
Copy link
Member

Move out private methods into their own functions as they do not need
access to class properties. This helps save on bundle size.

@AbhiPrasad AbhiPrasad added this to the Treeshaking / Bundle Size milestone Dec 15, 2021
@github-actions
Copy link
Contributor

github-actions bot commented Dec 15, 2021

size-limit report

Path Base Size (a60d7a5) Current Size Change
@sentry/browser - CDN Bundle (gzipped) 21.23 KB 21.21 KB -0.08% 🔽
@sentry/browser - CDN Bundle (minified) 69.05 KB 68.58 KB -0.69% 🔽
@sentry/browser - Webpack 22.96 KB 22.92 KB -0.18% 🔽
@sentry/browser - Webpack - gzip = false 80.15 KB 79.49 KB -0.84% 🔽
@sentry/react - Webpack 22.99 KB 22.95 KB -0.18% 🔽
@sentry/nextjs Client - Webpack 47.46 KB 47.43 KB -0.08% 🔽
@sentry/browser + @sentry/tracing - CDN Bundle (gzipped) 29.41 KB 29.41 KB -0.02% 🔽

@mitsuhiko mitsuhiko merged commit 1397a0a into master Dec 15, 2021
@mitsuhiko mitsuhiko deleted the abhi-breadcrumbs-private branch December 15, 2021 12:26
onurtemizkan pushed a commit that referenced this pull request Dec 19, 2021
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