natemoo-re / astro-icon

Inline and sprite-based SVGs in Astro made easy!
https://astroicon.dev
Other
990 stars 57 forks source link

Warn and continue when local icon cannot be loaded #184

Closed natemoo-re closed 6 months ago

natemoo-re commented 6 months ago

Closes #183.

Previously, invalid local icons would cause the entire local icon set to silently fail. By using ignoreImportErrors: 'warn', invalid icons are now logged and ignored while valid icons are properly loaded.

changeset-bot[bot] commented 6 months ago

🦋 Changeset detected

Latest commit: 461be7c4d47bcc27d81d13e10ed1ac53280d743b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ---------- | ----- | | astro-icon | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

vercel[bot] commented 6 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
api-astroicon ✅ Ready (Inspect) Visit Preview Jan 2, 2024 9:14pm
astroicon ✅ Ready (Inspect) Visit Preview Jan 2, 2024 9:14pm