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

fixes #4 #9

Closed
wants to merge 1 commit into from
Closed

fixes #4 #9

wants to merge 1 commit into from

Conversation

slowsage
Copy link
Contributor

@slowsage slowsage commented Mar 6, 2023

Fixes #4. See dylanblokhuis/svelte-feather-icons#10 for drawbacks, i.e. build time super slow if imported this way. With this, one can do
import { BsBox, Bs123, BsActivity, Icon } from "svelte-icons-pack";

Another option is to put an index.ts in each subfolder and it should only build that icon pack.
I opted to not use it given the slowness in build but it doesn't break existing behavior so thought I'd submit.
Please feel free to modify and submit another PR if you think its still worth it or if there is a way to avoid the build delay.

…using "import { FaSolidMicrophoneAlt } from 'svelte-icons-pack';"
@slowsage
Copy link
Contributor Author

slowsage commented Mar 7, 2023

I think I found a way - will need more changes. Will resubmit once I get to it.

@slowsage slowsage closed this Mar 7, 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

Successfully merging this pull request may close these issues.

Named import
1 participant