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: babel targets in rollup config #1479

Merged
merged 3 commits into from
Oct 17, 2024
Merged

chore: babel targets in rollup config #1479

merged 3 commits into from
Oct 17, 2024

Conversation

pauldambra
Copy link
Member

@pauldambra pauldambra commented Oct 16, 2024

we should configure the rollup babel plugin with our browserlist targets.

it uses them to figure out what it should and shouldn't do...

in theory it helps reduce bundle size - but it can't hurt

discovered while investigating IE11 support in #1478

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 16, 2024 10:28pm

Copy link

Size Change: -1.93 kB (-0.07%)

Total Size: 2.83 MB

Filename Size Change
dist/all-external-dependencies.js 192 kB -90 B (-0.05%)
dist/array.full.js 355 kB -206 B (-0.06%)
dist/array.full.no-external.js 354 kB -206 B (-0.06%)
dist/array.js 169 kB -164 B (-0.1%)
dist/array.no-external.js 168 kB -164 B (-0.1%)
dist/exception-autocapture.js 11.3 kB -30 B (-0.26%)
dist/main.js 170 kB -164 B (-0.1%)
dist/module.full.js 355 kB -206 B (-0.06%)
dist/module.full.no-external.js 354 kB -206 B (-0.06%)
dist/module.js 169 kB -164 B (-0.1%)
dist/module.no-external.js 168 kB -164 B (-0.1%)
dist/recorder-v2.js 111 kB -57 B (-0.05%)
dist/recorder.js 111 kB -57 B (-0.05%)
dist/surveys-preview.js 59.8 kB -17 B (-0.03%)
dist/surveys.js 66 kB -18 B (-0.03%)
dist/web-vitals.js 10.3 kB -13 B (-0.13%)
ℹ️ View Unchanged
Filename Size
dist/external-scripts-loader.js 2.35 kB
dist/tracing-headers.js 8.36 kB

compressed-size-action

@pauldambra pauldambra merged commit 1d2a95a into main Oct 17, 2024
15 checks passed
@pauldambra pauldambra deleted the chore/babel-targets branch October 17, 2024 09:38
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