Skip to content

Commit

Permalink
fix(build): icon extraction failing
Browse files Browse the repository at this point in the history
  • Loading branch information
eythaann committed Dec 19, 2024
1 parent 4051aaf commit b19789b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b19789b

Please sign in to comment.