From b19789b3d1f34468191f0ce77eefa61ec054d915 Mon Sep 17 00:00:00 2001 From: eythaann Date: Wed, 18 Dec 2024 21:29:35 -0500 Subject: [PATCH] fix(build): icon extraction failing --- scripts/build.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build.ts b/scripts/build.ts index 525865be..684757e7 100644 --- a/scripts/build.ts +++ b/scripts/build.ts @@ -69,7 +69,7 @@ async function extractIconsIfNecessary() { let families = await Promise.all(promises); for (const family of families) { - for (const [name, ElementConstructor] of Object.entries(family.default)) { + for (const [name, ElementConstructor] of Object.entries(family)) { const element = ElementConstructor({ size: '1em' }); const svg = renderToStaticMarkup(element); fs.writeFileSync(`./dist/icons/${name}.svg`, svg);