-
-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Compatibility with the static build (#26)
* Compatibility with the static build * Adds a changeset * Remove astro as a dependency * Use set:html * fix: allow `createIconPack` to work with `--experimental-static-build`, use `set:html` * chore: update `demo` to use `--experimental-static-build` Co-authored-by: Nate Moore <nate@skypack.dev>
- Loading branch information
Showing
14 changed files
with
566 additions
and
567 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"astro-icon": minor | ||
--- | ||
|
||
`astro-icon` is now compatible with Astro's `--experimental-static-build` flag |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
"astro-icon": minor | ||
--- | ||
|
||
# Breaking Changes | ||
|
||
- `astro-icon@0.6.0` is compatible with `astro@0.23.x` and up, but will no longer work in lower versions. | ||
|
||
- The `createIconPack` export has been moved from `astro-icon` to `astro-icon/pack`. | ||
|
||
You will likely see a Vite error that `createIconPack` is not defined until you update your import statement. | ||
|
||
```diff | ||
- import { createIconPack } from "astro-icon"; | ||
+ import { createIconPack } from "astro-icon/pack"; | ||
|
||
export default createIconPack({ package: "heroicons", dir: "outline" }) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import { createIconPack } from "astro-icon"; | ||
import { createIconPack } from "astro-icon/pack"; | ||
|
||
export default createIconPack({ package: "heroicons", dir: "outline" }); | ||
export default createIconPack({ package: "heroicons", dir: "outline" }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './lib/createIconPack'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
21bfa28
There was a problem hiding this comment.
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
21bfa28
There was a problem hiding this comment.
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/
astroicon-git-main-nmoo.vercel.app
www.astroicon.dev
astroicon-nmoo.vercel.app
astro-icon-www.vercel.app
astroicon.dev