Skip to content
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

build: Build for ES2020 #142

Merged
merged 1 commit into from
Dec 19, 2023
Merged

build: Build for ES2020 #142

merged 1 commit into from
Dec 19, 2023

Conversation

mydea
Copy link
Member

@mydea mydea commented Dec 19, 2023

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.

Avoid already polyfilling stuff in here - we rather do this in the Sentry SDK directly.
@mydea mydea self-assigned this Dec 19, 2023
@mydea mydea mentioned this pull request Dec 19, 2023
Copy link

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% 🔽)

@mydea mydea merged commit 512c15e into sentry-v2 Dec 19, 2023
14 checks passed
@mydea mydea deleted the fn/avoid-polyfill branch December 19, 2023 16:22
mydea added a commit that referenced this pull request Dec 20, 2023
Related to #142, noticed that
this is kind of unnecessary (and is transpiled in pre-ES2017 envs).
Passing an async function to forEach is anyhow a bit weird I'd say.
mydea added a commit to getsentry/sentry-javascript that referenced this pull request Jan 10, 2024
This bump contains the following changes:

- fix(rrweb): Use unpatched requestAnimationFrame when possible
[#150](getsentry/rrweb#150)
- ref: Avoid async in canvas
[#143](getsentry/rrweb#143)
- feat: Bundle canvas worker manually
[#144](getsentry/rrweb#144)
- build: Build for ES2020
[#142](getsentry/rrweb#142)

Extracted out from
#9826

Closes #6946
billyvg pushed a commit that referenced this pull request Apr 26, 2024
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.
billyvg pushed a commit that referenced this pull request Apr 26, 2024
Related to #142, noticed that
this is kind of unnecessary (and is transpiled in pre-ES2017 envs).
Passing an async function to forEach is anyhow a bit weird I'd say.
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