Skip to content

Commit

Permalink
Vite 3 fix (#46)
Browse files Browse the repository at this point in the history
* Update utils.ts

* Create serious-poets-hope.md
  • Loading branch information
natemoo-re authored Jul 19, 2022
1 parent 000ac26 commit 31b6eae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/serious-poets-hope.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"astro-icon": patch
---

Another Vite 3 fix
2 changes: 1 addition & 1 deletion packages/core/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ ${contents}`
filepath = `/src/icons/${name}.svg`;

try {
const files = import.meta.globEager(`/src/icons/**/*.svg`, { as: "raw" });
const files = import.meta.globEager("/src/icons/**/*.svg", { as: "raw" });

if (!(filepath in files)) {
throw new Error(`Could not find the file "${filepath}"`);
Expand Down

2 comments on commit 31b6eae

@vercel
Copy link

@vercel vercel bot commented on 31b6eae Jul 19, 2022

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:

astroicon – ./packages/www/

www.astroicon.dev
astroicon-nmoo.vercel.app
astro-icon-www.vercel.app
astroicon-git-main-nmoo.vercel.app
astroicon.dev

@vercel
Copy link

@vercel vercel bot commented on 31b6eae Jul 19, 2022

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-git-main-nmoo.vercel.app
api.astroicon.dev
api-astroicon-nmoo.vercel.app

Please sign in to comment.