Skip to content

Update heroicons so unused icons are left out of the bundle - #383

Merged
merlinfuchs merged 1 commit into
mainfrom
merlin/heroicons-esm
Oct 21, 2026
Merged

merlinfuchs merged 1 commit into
mainfrom
merlin/heroicons-esm

Conversation

@merlinfuchs

Copy link
Copy Markdown
Owner

Heroicons 2.0.17 maps the 20/solid, 24/outline and 24/solid imports to its CommonJS build, so Vite bundled all 879 icons. 2.2.0 maps them to the ESM build, which takes the main chunk from 1,528 KB to 871 KB (375 to 256 KB gzip).

@merlinfuchs
merlinfuchs merged commit 3278ebb into main Oct 21, 2026
4 checks passed
@merlinfuchs
merlinfuchs deleted the merlin/heroicons-esm branch October 21, 2026 11:19
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.

1 participant