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: build an es5 bundle and move main to es6 #1480

Merged
merged 13 commits into from
Oct 17, 2024

Conversation

pauldambra
Copy link
Member

@pauldambra pauldambra commented Oct 16, 2024

stacked on top of #1479

not supporting IE11 is a 10% bundle saving
so, we should move anyone that needs to support IE11 to a new bundle

Copy link

vercel bot commented Oct 16, 2024

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

Name Status Preview Updated (UTC)
posthog-js ✅ Ready (Inspect) Visit Preview Oct 17, 2024 0:03am

@pauldambra pauldambra changed the base branch from main to chore/babel-targets October 16, 2024 22:43
Copy link

github-actions bot commented Oct 16, 2024

Size Change: -283 kB (-9.14%) ✅

Total Size: 2.81 MB

Filename Size Change
dist/all-external-dependencies.js 172 kB -20 kB (-10.45%) 👏
dist/array.full.js 324 kB -32.6 kB (-9.13%)
dist/array.full.no-external.js 323 kB -32.5 kB (-9.13%)
dist/array.js 155 kB -16 kB (-9.34%)
dist/array.no-external.js 154 kB -15.9 kB (-9.35%)
dist/exception-autocapture.js 8.75 kB -2.6 kB (-22.88%) 🎉
dist/external-scripts-loader.js 2.17 kB -180 B (-7.66%)
dist/main.js 156 kB -16 kB (-9.31%)
dist/module.full.js 324 kB -32.6 kB (-9.13%)
dist/module.full.no-external.js 323 kB -32.5 kB (-9.13%)
dist/module.js 155 kB -16 kB (-9.35%)
dist/module.no-external.js 154 kB -15.9 kB (-9.36%)
dist/recorder-v2.js 92.6 kB -18.1 kB (-16.36%) 👏
dist/recorder.js 92.7 kB -18.1 kB (-16.35%) 👏
dist/surveys-preview.js 56.6 kB -3.19 kB (-5.33%)
dist/surveys.js 62.1 kB -3.9 kB (-5.92%)
dist/tracing-headers.js 1.33 kB -7.03 kB (-84.1%) 🏆
dist/web-vitals.js 10.3 kB +8 B (+0.08%)
ℹ️ View Unchanged
Filename Size
dist/array.full.es5.js 248 kB

compressed-size-action

Copy link
Contributor

@daibhin daibhin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The size savings here are incredible!

@pauldambra pauldambra force-pushed the chore/build-an-ie11-bundle branch from d82a4b9 to a163392 Compare October 17, 2024 09:41
@pauldambra pauldambra added the bump minor Bump minor version when this PR gets merged label Oct 17, 2024
@pauldambra pauldambra changed the title chore: build an IE11 bundle chore: build an es5 bundle and move main to es6 Oct 17, 2024
@pauldambra pauldambra merged commit 6b0489e into main Oct 17, 2024
14 checks passed
@pauldambra pauldambra deleted the chore/build-an-ie11-bundle branch October 17, 2024 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bump minor Bump minor version when this PR gets merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants