shinokada / svelte-heros-v2

Hero Icons v2 for Svelte. You can select outline and solid icons using the variation props. Svlete-Heros support major CSS framework. You can add additional CSS using the `class` props.
https://svelte-heros-v2.codewithshin.com
Apache License 2.0
41 stars 3 forks source link

[BUG]: svelte-heros-v2 increasing bundle size #20

Closed xmlking closed 10 months ago

xmlking commented 10 months ago

Description of the bug

apparently svelte-heros-v2 adding 50% of my bundle size. is there a way to reduce this size?

image image

Steps To Reproduce

N/A

Additional Information

N/A

shinokada commented 10 months ago

Can you try the latest version?

xmlking commented 10 months ago

Using "svelte-heros-v2": "0.9.5",

shinokada commented 10 months ago

Maybe I need to go back to individual components rather than putting all path in a file. Can you try v0.7.4 and let me know.

shinokada commented 10 months ago

The v0.10 should solve this problem.

shinokada commented 10 months ago

I'm sorry, it's a breaking change.

xmlking commented 10 months ago

no problem.
Just for your reference, I switched to flowbite-svelte-icons for the same project, The client icon bundle is 57.63 kB and the server icon bundle size is 226.97 kB I am OK for this size for convenience for easy of use.

image image
shinokada commented 10 months ago

Since Flowbite icon library is increasing in number, I will change it to individual components in the future. It adds extra benefits as well.