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

Reduce bundle size by 66% #67

Merged
merged 8 commits into from
Jan 24, 2025
Merged

Reduce bundle size by 66% #67

merged 8 commits into from
Jan 24, 2025

Conversation

mrkpatchaa
Copy link
Collaborator

@mrkpatchaa mrkpatchaa commented Jan 23, 2025

This is an effort to reduce the bundle size and the result is very significant.
Current unpacked version is 69.8 MB.
With the new generation process, the unpacked size is 23.1 MB
Screenshot 2025-01-23 at 19 56 11
I implemented the same logic as on @phosphor-icons/react with specific use cases for React Native (duotone)

Related to #61
Closes #28 because it will considerably reduce the number of files.

Tests on a real app with expo-atlas

Before

Screenshot 2025-01-23 at 21 05 09

After

Screenshot 2025-01-23 at 21 11 33

@duongdev The update should be seamless but I suggest We bump version to 2.3 at least or 3.0 if this is validated.

@mrkpatchaa mrkpatchaa marked this pull request as draft January 23, 2025 19:54
@mrkpatchaa mrkpatchaa changed the title WIP: Reduce bundle size and NPM download size Reduce bundle size Jan 23, 2025
@mrkpatchaa mrkpatchaa changed the title Reduce bundle size Reduce bundle size by 66% Jan 23, 2025
@mrkpatchaa mrkpatchaa requested a review from duongdev January 23, 2025 20:33
@mrkpatchaa mrkpatchaa marked this pull request as ready for review January 23, 2025 21:09
Copy link
Owner

@duongdev duongdev left a comment

Choose a reason for hiding this comment

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

Nice. Thank you!

@mrkpatchaa mrkpatchaa merged commit 9573d7f into main Jan 24, 2025
2 checks passed
@mrkpatchaa mrkpatchaa deleted the feat/reduce-size branch January 25, 2025 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants