Interesting pattern i just come up with to have a collection of svgs in svelte 🧡
https://svelte.dev/playground/fe0f940a0d4a4dd4990495101d829428?version=5.28.2
https://svelte.dev/playground/fe0f940a0d4a4dd4990495101d829428?version=5.28.2
Comments
This way each svg is in its own file and there is no need to add a new export every time
I believe hydration is also simpler using {@html} (not sure)
However the snippet version will work even without vite and it will technically also treeshake away every unused icon. I think you can also