Skip to content

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.

3 participants