Joaquín Sánchez

Results 1398 comments of Joaquín Sánchez

When removing `{@html ...}` from runes compiler, it seems we've found an Svelte 5 bug (?), generating all children variables but not being used: In both cases: ![imagen](https://github.com/unplugin/unplugin-icons/assets/6311119/4335ef80-c104-4f1d-b804-ae098f7d3ee5) Without `{@html...

it seems another problem, we're using [camelToKebab](https://github.com/iconify/iconify/blob/main/packages/utils/src/misc/strings.ts#L19-L25) and the resolver should be fine: ![imagen](https://github.com/unplugin/unplugin-icons/assets/6311119/eee8853c-d4df-4fb8-8ce3-663ba1067875)

> I've reported that one in the past. They stated it's low priority because the bundler will remove the unused variables ok, adding optimization, I'll check also the build output...

https://github.com/userquin/unplugin-icons-svelte-runes/tree/runes-optimization

@olemarius can you fork this SB repro https://stackblitz.com/fork/github/unplugin/unplugin-icons/tree/userquin/docs-add-stackblitz-links/examples/vite-vue3 and add a reproduction? EDIT: I guess we also need to fix the compiler.

@olemarius you've installed `heroicons`, install `heroicons-outline` instead ![imagen](https://github.com/unplugin/unplugin-icons/assets/6311119/d46716ef-2638-4e95-8413-a38875e14f50) or use `icon-heroicons:command-line`: ![imagen](https://github.com/unplugin/unplugin-icons/assets/6311119/0aa62540-bf62-4aab-959c-a1e3248bf016) In the meantime, import the icon manually: https://stackblitz.com/edit/unplugin-unplugin-icons-g3be2f?file=App.vue

it seems a problem with unplugin-vue-components and/or unplugin-auto-import

@olemarius I'll try to fix the problem, or add an option to enable old `:` behavior if cannot be fixed here

@bbugh upps, you're right, checking your use case... I'll remove this issue from the PR

@bbugh it seems a problem with `unplugin-vue-components/unplugin-auto-import`, adding this `importPathTransform` hook to the `Components` plugin works: ```ts Components({ dts: true, importPathTransform(path) { return path === '~icons/fluent/speaker224-regular' ? '~icons/fluent/speaker2-24-regular' : path...