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

Global transform for every icon #307

Open eye-wave opened 9 months ago

eye-wave commented 9 months ago

Clear and concise description of the problem

i've seen from the docs that the transform function only works on custom icons. why can't it work on all of them?

Suggested solution

make transform work on every icon, not just custom ones

Alternative

using compiler: "raw" and playing around with innerHTML

Additional context

this feature would be most useful for optimizations, since most of the icons look good with 1 or even 0 float numbers in the path element

Validations

antfu commented 9 months ago

Well, sure, PR welcome