antfu / unplugin-icons

šŸ¤¹ Access thousands of icons as components on-demand universally.

Home Page:https://www.npmjs.com/package/unplugin-icons

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ID collisions in vue 2

roamiiing opened this issue Ā· comments

Hey! I am using this plugin really often with Vite and Vue 3. But now I am trying to use this plugin on Vue 2 and webpack 4 and getting collisions with IDs in attrs of svg elements.

I've looked at the code and noticed that there's this function, but it's only used in the compiler for Vue 3 .

Why is handling of ID collisions done only for Vue 3, and is there a possibility to do something like this for Vue 2?

+1. Please backport this fix 0908f60 to vue 2 compiler.