You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
nitishdhar
changed the title
Tree shaking for react-icons isn't working. Loads all icon modules during development
Tree shaking for react-icons isn't working in local development. Loads all icon modules
Aug 12, 2023
I've created the icon-lag-testing branch to sandbox some potential resolutions as there has been little activity on that PR from the maintainers. Which is disappointing.
icon-lag-testing branch currently has moved all of our icons to fontAwesome from react-icons. Total unzipped client size compared to development branch with same codebase is 3.7mb vs 14.3mb. Zipped size is larger with 372.9kb vs 356.9kb on development.
I suggest we test using the icon-lag-testing branch to see the impact on developer experience. If this difference is noticeable then we should merge it into all active main branches and eliminate using react-icons in the future.
Tree shaking for react-icons isn't working in local development. Loads all icon modules
Works fine for the production build.
event compiled client and server successfully in 41.4s (2653 modules)
Refer - react-icons/react-icons#154
Also Refer - vercel/next.js#48748
The text was updated successfully, but these errors were encountered: