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

refactor(deps): use tree-shakeable version of lodash #296

Merged
merged 2 commits into from
Feb 28, 2023

Conversation

tafelnl
Copy link
Contributor

@tafelnl tafelnl commented Feb 24, 2023

This cuts down the build size from 217.21KiB to 47.34KiB!

Old

dist/style.css           0.22 KiB / gzip: 0.12 KiB
dist/vue3-lottie.es.js   217.21 KiB / gzip: 42.51 KiB
dist/vue3-lottie.umd.js   76.28 KiB / gzip: 27.78 KiB

New:

dist/style.css           0.22 KiB / gzip: 0.12 KiB
dist/vue3-lottie.es.js   47.34 KiB / gzip: 10.61 KiB
dist/vue3-lottie.umd.js   21.12 KiB / gzip: 7.65 KiB

If you would remove lodash completely, you would be looking at something like 9.78 KiB. So that's definitely worth trying.

@tafelnl tafelnl requested a review from megasanjay as a code owner February 24, 2023 09:03
@vercel
Copy link

vercel bot commented Feb 24, 2023

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

Name Status Preview Comments Updated
vue3-lottie ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Feb 28, 2023 at 7:07PM (UTC)

@tafelnl
Copy link
Contributor Author

tafelnl commented Feb 26, 2023

Rebased it for you

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