feathericons / feather

Simply beautiful open-source icons
https://feathericons.com
MIT License
24.78k stars 1.21k forks source link

Question: Is tree shaking supported? #1028

Open ajitzero opened 3 years ago

ajitzero commented 3 years ago

Hi, I was wondering if tree-shaking was implemented with the npm package.

I couldn't find any reference to this anywhere in the issues about this.

(I'm looking to use this in an Angular project, couldn't confirm whether or not I'm loading the complete thing.)

ericfennis commented 3 years ago

Feather is not supporting tree-shaking.

zomars commented 1 year ago

Are you open for PRs to fix this?

amerkay commented 1 year ago

That's a deal breaker for me - 86kb minified to use a few icons is way too much and is an obvious limitation of this lib that would limit it's growth.

This PR would be much appreciated @zomars. I love feather icons and this would allow me to use it.

ajitzero commented 1 year ago

@zomars @amerkay Feather icons have not had an update in over 2 years, and it is unofficially known to be abandoned. There are actively maintained forks instead, which are community-supported.

Top alternative: Lucide - Website | GitHub -> Tree-shaking is supported here, and it is mostly a drop-in replacement.

amerkay commented 1 year ago

@ajitzero Thank you for this. That's what I was looking for!