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

Fat bundles, even if you only use one icon #55

Open
lucasew opened this issue Nov 1, 2022 · 2 comments
Open

Fat bundles, even if you only use one icon #55

lucasew opened this issue Nov 1, 2022 · 2 comments

Comments

@lucasew
Copy link

lucasew commented Nov 1, 2022

I decided to use this library to add an icon to an app I am developing [0]. I really only need the Github [1] icon, but the way this is structured, I pay the cost to add all the icons. That's a bundle of about 5 MB uncompressed and ~1.1 MB compressed.

Because the components are auto sufficient, at least the GitHub one, I was able to just copy that Svelte file to the repo and remove the dependency. Now the app bundle is under 16 KB.

[0] https://base16-showcase.vercel.app/
[1] https://github.com/icons-pack/svelte-simple-icons/blob/main/src/components/Github.svelte

@wootsbot
Copy link
Member

I am working on a Pr where I will have the shaking tree and src will be exposed.

@wootsbot wootsbot pinned this issue Mar 14, 2023
@wootsbot
Copy link
Member

wootsbot commented Oct 31, 2023

I am performing a refactor that solves the issue.

live: https://github.com/icons-pack/svelte-simple-icons/releases/tag/v4.0.0-rc.2

@wootsbot wootsbot unpinned this issue Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants