Skip to content

build(deno): Treeshake deno package #9260

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
Oct 16, 2023
Merged

Conversation

lforst
Copy link
Contributor

@lforst lforst commented Oct 16, 2023

I noticed the deno build output contained some odd pieces of code (the vendored session replay compression) so I figured we are not properly tree shaking.

This PR increases level of tree-shaking we do which will decrease the bundle size to the bare minimum.

@lforst lforst requested a review from timfish October 16, 2023 12:50
@github-actions
Copy link
Contributor

size-limit report 📦

Path Size
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 84.26 KB (-0.01% 🔽)
@sentry/browser (incl. Tracing) - Webpack (gzipped) 31.43 KB (-0.01% 🔽)
@sentry/browser - Webpack (gzipped) 22.01 KB (-0.02% 🔽)
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 78.79 KB (-0.01% 🔽)
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 28.6 KB (-0.02% 🔽)
@sentry/browser - ES6 CDN Bundle (gzipped) 21.02 KB (-0.02% 🔽)
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 254.51 KB (0%)
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 86.76 KB (0%)
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 62.45 KB (0%)
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 31.48 KB (-0.02% 🔽)
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 84.29 KB (-0.01% 🔽)
@sentry/react - Webpack (gzipped) 22.06 KB (-0.02% 🔽)
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 102.2 KB (-0.01% 🔽)
@sentry/nextjs Client - Webpack (gzipped) 50.96 KB (-0.01% 🔽)

@lforst lforst merged commit e51cfea into develop Oct 16, 2023
@lforst lforst deleted the lforst-treshake-deno-package branch October 16, 2023 13:56
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