getsentry / rrweb

record and replay the web
https://www.rrweb.io/
Other
9 stars 5 forks source link

build: Build for ES2020 #142

Closed mydea closed 7 months ago

mydea commented 7 months ago

Avoid already polyfilling stuff in here - we rather do this in the Sentry SDK directly.

Currently, we are polyfilling things separately here (e.g. rest parameters, async/await), but we would polyfill stuff we need more efficiently in the Sentry SDK anyhow. So this should reduce bundle size a bit.

github-actions[bot] commented 7 months ago

size-limit report 📦

Path Size
rrweb - record only (gzipped) 16.57 KB (-1.63% 🔽)
rrweb - record & getCanvasManager only (gzipped) 21.12 KB (-7.85% 🔽)
rrweb - record only (min) 56.53 KB (-2.44% 🔽)
rrweb - record with treeshaking flags (gzipped) 15.35 KB (-1.58% 🔽)