Skip to content

Commit

Permalink
Warn and continue when local icon cannot be loaded (#184)
Browse files Browse the repository at this point in the history
* fix(#183): warn and continue when local icon cannot be loaded

* chore: add changeset
  • Loading branch information
natemoo-re committed Jan 2, 2024
1 parent b55cd5f commit beefcb7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/heavy-insects-yawn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"astro-icon": patch
---

Improves handling of invalid local icons, which previously caused all local icons to silently fail.
1 change: 1 addition & 0 deletions packages/core/src/loaders/loadLocalCollection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export default async function createLocalCollection(
prefix: "local",
keepTitles: true,
includeSubDirs: true,
ignoreImportErrors: 'warn',
keyword: (file) => file.subdir + file.file,
});

Expand Down

2 comments on commit beefcb7

@vercel
Copy link

@vercel vercel bot commented on beefcb7 Jan 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

api-astroicon – ./packages/service

api.astroicon.dev
api-astroicon-git-main-nmoo.vercel.app
api-astroicon-nmoo.vercel.app

@vercel
Copy link

@vercel vercel bot commented on beefcb7 Jan 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.