svelte-icons
svelte-icons copied to clipboard
destructured import
with code splitting / tree shaking it should be possible to do a destructured import and not get the entire icon set.
Agreee on this one just want to upvote. ; ) Love the library Happy to use it. But not being able to restructure out things like social icons from the same place adds a lot of mess up top to the imports.
example:
` import {FaInstagram, FaTwitter, FaFacebook, FaLinkedInIn, FaSlack, FaGithub} from "svelte-icons/fa"; // How Tried to use but couldn't as it loaded everything from svelte-icons and was really really slow for dev.
Had to use the below; however, that's just imports for icons not counting other imports.
import FaInstagram from 'svelte-icons/fa/FaInstagram.svelte';
import FaTwitter from 'svelte-icons/fa/FaTwitter.svelte';
import FaFacebook from 'svelte-icons/fa/FaFacebook.svelte';
import FaLinkedinIn from 'svelte-icons/fa/FaLinkedinIn.svelte';
import FaSlack from 'svelte-icons/fa/FaSlack.svelte';
import FaGithub from 'svelte-icons/fa/FaGithub.svelte';
`
This will be a wonderful enhancement! looking forward to it ; ))