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

performance: optimize react-icons #12752

Closed
wants to merge 5 commits into from
Closed

performance: optimize react-icons #12752

wants to merge 5 commits into from

Conversation

nhsz
Copy link
Member

@nhsz nhsz commented Apr 17, 2024

[updae: abandoned as it didn't work as expected] This PR optimizes how icons from react-icons are being imported, to reduce bundle size. Apparently tree-shaking doesn't work very good with this library, so when we use some icons it ends importing the entire package. To avoid this, we need to import icons individually from a different path.

@nhsz nhsz self-assigned this Apr 17, 2024
@github-actions github-actions bot added content 🖋️ This involves copy additions or edits needs review 👀 labels Apr 17, 2024
Copy link

netlify bot commented Apr 17, 2024

Deploy Preview for ethereumorg failed. Why did it fail? →

Name Link
🔨 Latest commit ba61624
🔍 Latest deploy log https://app.netlify.com/sites/ethereumorg/deploys/661f3941ee23690008c46336

@nhsz nhsz closed this Apr 17, 2024
@nhsz nhsz deleted the optimize-react-icons branch April 17, 2024 03:13
@github-actions github-actions bot added the abandoned This has been abandoned or will not be implemented label Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
abandoned This has been abandoned or will not be implemented content 🖋️ This involves copy additions or edits
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant