unplugin / unplugin-icons

🤹 Access thousands of icons as components on-demand universally.
https://www.npmjs.com/package/unplugin-icons
MIT License
3.65k stars 131 forks source link

fix: wrong query params splitting when resolving icon id #339

Closed userquin closed 5 months ago

userquin commented 5 months ago

Description

When splitting the query params from the icon id there is an additional ?, we must use queryIndex + 1.

This PR also updates to SvelteKit 2 the example and updates a raw icon to use width/height with 4.25em.

Linked Issues

closes #338

Additional context

stackblitz[bot] commented 5 months ago

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

socket-security[bot] commented 5 months ago

New and updated dependencies detected. Learn more about Socket for GitHub ↗︎

Packages Version New capabilities Transitives Size Publisher
svelte-check 3.6.2 None +1 40.9 MB svelte-language-tools-deploy
typescript 5.3.3 None +0 32 MB typescript-bot
@sveltejs/kit 1.27.5...2.0.6 None +0/-0 703 kB svelte-admin