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

chore: always transform exponentiation #1537

Merged
merged 1 commit into from
Nov 19, 2024

Conversation

pauldambra
Copy link
Member

pulling small changes out of #1525 because IE 11 tests are freezing in that PR and it's really hard to figure out why

We use the exponentiation operator in some code 2 ** 4 which is a relatively modern bit of JS.

This ensures that it is always transformed to Math.pow(2, 4) by babel. Which is at least ES5 supporting

Copy link

vercel bot commented Nov 19, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
posthog-js ✅ Ready (Inspect) Visit Preview Nov 19, 2024 10:05am

Copy link

Size Change: +657 B (+0.02%)

Total Size: 3.11 MB

Filename Size Change
dist/array.full.js 356 kB +73 B (+0.02%)
dist/array.full.no-external.js 355 kB +73 B (+0.02%)
dist/array.js 170 kB +73 B (+0.04%)
dist/array.no-external.js 169 kB +73 B (+0.04%)
dist/main.js 171 kB +73 B (+0.04%)
dist/module.full.js 356 kB +73 B (+0.02%)
dist/module.full.no-external.js 355 kB +73 B (+0.02%)
dist/module.js 170 kB +73 B (+0.04%)
dist/module.no-external.js 169 kB +73 B (+0.04%)
ℹ️ View Unchanged
Filename Size
dist/all-external-dependencies.js 204 kB
dist/array.full.es5.js 253 kB
dist/dead-clicks-autocapture.js 13.6 kB
dist/exception-autocapture.js 8.7 kB
dist/external-scripts-loader.js 2.19 kB
dist/recorder-v2.js 113 kB
dist/recorder.js 113 kB
dist/surveys-preview.js 56.6 kB
dist/surveys.js 62.1 kB
dist/tracing-headers.js 1.33 kB
dist/web-vitals.js 10.3 kB

compressed-size-action

@pauldambra pauldambra added the bump patch Bump patch version when this PR gets merged label Nov 19, 2024
@pauldambra pauldambra requested a review from robbie-c November 19, 2024 10:17
@pauldambra pauldambra merged commit 1ebfcb4 into main Nov 19, 2024
17 checks passed
@pauldambra pauldambra deleted the chore/always-transform-exponentiation branch November 19, 2024 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bump patch Bump patch version when this PR gets merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants