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

Remove babel/preset-env to reduce bundle size #34

Merged
merged 1 commit into from
Mar 12, 2024
Merged

Conversation

cmdcolin
Copy link
Contributor

@cmdcolin cmdcolin commented Mar 5, 2024

I noticed babel/preset-env was down-transpiling to quite a low level. This PR removes it entirely.

The bundle size with and without preset-env
w: 5.8Mb
w/o: 3.1Mb

an alternative is to configure preset-env to a more reasonable default, but app loads fine in e.g. firefox without it

@cmdcolin cmdcolin merged commit 981ad61 into main Mar 12, 2024
5 checks passed
@cmdcolin cmdcolin deleted the remove_preset_env branch March 12, 2024 15:55
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.

1 participant