Skip to content

feat!: add Iconify FileSystemHMRIconLoader support - #440

Merged
antfu merged 6 commits into
mainfrom
userquin/feat-add-iconify-fs-hmr-loader
Sep 7, 2026
Merged

antfu merged 6 commits into
mainfrom
userquin/feat-add-iconify-fs-hmr-loader

Conversation

@userquin

@userquin userquin commented Sep 6, 2026

Copy link
Copy Markdown
Member

Description

This PR includes:

  • update unplugin to 3.3.0 (breaking => node 20 or above)
  • update @iconify/utils to 3.1.6: added the new FileSystemHMRIconLoader (requires custom implementation since the new hmr-utils subpackage export cannot be directly consumed here => fixed at 3.1.7)
  • custom logic to deal with HMR (core/hmr.ts module): some changes at core loader and index.ts to handle HMR correctly
  • included HMR at examples: astro, astro-vue (added vue as dependency, failing to resolve vue on my local), vite-vue3, sveltekit, webpack (added html plugin to check the new loader in the browser), rspack, next, vite-ember and webpack-ember
  • added breaking note at README.md (node 20 or above)
  • added entry for the new icon loader with some example (similar to External Collection Packages entry) and some warning about folder location at README.md
  • fixed typecheck script

Linked Issues

closes #424
supersedes #425
supersedes #439

Additional context

This pull request includes changes for the first, fourth, and fifth entries in this comment's list: #439 (comment)

@bolt-new-by-stackblitz

Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@pkg-pr-new

pkg-pr-new Bot commented Sep 6, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/unplugin-icons@440

commit: 3f4c0c8

@socket-security

socket-security Bot commented Sep 6, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updated@​iconify/​utils@​3.1.0 ⏵ 3.1.710010081 +192100

View full report

@userquin userquin changed the title feat!: add Iconify FileSystemHMRIconLoader support feat!: add Iconify FileSystemHMRIconLoader support Sep 6, 2026
@userquin
userquin requested a review from antfu September 6, 2026 13:51
@userquin
userquin marked this pull request as draft September 6, 2026 15:36
@userquin

userquin commented Sep 6, 2026

Copy link
Copy Markdown
Member Author

Updating iconify utils, hmr-utils subpackage export updated...

@userquin
userquin marked this pull request as ready for review September 6, 2026 16:04
@antfu
antfu merged commit a60bcd6 into main Sep 7, 2026
5 checks passed
@antfu
antfu deleted the userquin/feat-add-iconify-fs-hmr-loader branch September 7, 2026 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Custom icons HMR failure

2 participants