Closed carmel closed 2 years ago
I met this situation too... And my main project use the same plugin too archive svg icon, and it broke the main project @carmel do you find any solutions?
I am on the same boat. @carmel, how did you provide your sprite through the library mode?
I am on the same boat. @carmel, how did you provide your sprite through the library mode?
In my case, i am using vite-svg-loader instead in library mode.
I guess it's because of the
import 'virtual:svg-icons-register'
line of code inmain.js
, which is the entrance of vue project, the component library built under vite's library mode doesn't display the svg icon properly. Maybe it's because I didn't importvite-plugin-svg-icons
in the new project, but I don't want to import it either, because the library component shouldn't be a separate library?Does anyone have a solution? Thanks in advance!