@hyvor/icons 2.0.0-beta.3 → 2.0.0-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/Icon.svelte CHANGED
@@ -22,11 +22,10 @@
22
22
  }
23
23
 
24
24
  async function getSvg() {
25
- const path = `./icons/${name}.svg`;
26
- const loader = icons[path];
25
+ const loader = icons[name];
27
26
  if (!loader) return '[?]';
28
27
  const raw = await loader();
29
- return addAttributes(raw as string);
28
+ return addAttributes(raw.default as string);
30
29
  }
31
30
 
32
31
  const svg = await getSvg();