Skip to content

ref(browser): Extract private methods from LinkedErrors #4295

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 6 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.

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 (4464f31) Current Size Change
@sentry/browser - CDN Bundle (gzipped) 21.2 KB 21.2 KB 0%
@sentry/browser - CDN Bundle (minified) 68.07 KB 67.98 KB -0.13% 🔽
@sentry/browser - Webpack 22.93 KB 22.92 KB -0.07% 🔽
@sentry/browser - Webpack - gzip = false 78.96 KB 78.82 KB -0.18% 🔽
@sentry/react - Webpack 22.96 KB 22.95 KB -0.07% 🔽
@sentry/nextjs Client - Webpack 47.42 KB 47.41 KB -0.02% 🔽
@sentry/browser + @sentry/tracing - CDN Bundle (gzipped) 29.4 KB 29.4 KB -0.01% 🔽

@AbhiPrasad
Copy link
Member Author

Need to fix the tests here

@AbhiPrasad AbhiPrasad enabled auto-merge (squash) December 15, 2021 16:49
@AbhiPrasad AbhiPrasad merged commit 21ea870 into master Dec 15, 2021
@AbhiPrasad AbhiPrasad deleted the abhi-linkederrors-private branch December 15, 2021 17:24
onurtemizkan pushed a commit that referenced this pull request Dec 19, 2021
Move out private methods into their own functions as they do not need
access to class properties. This helps save on bundle size.

Co-authored-by: Armin Ronacher <[email protected]>
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