jpkleemans / vite-svg-loader

Vite plugin to load SVG files as Vue components
MIT License
555 stars 59 forks source link

fix: add name to components #78

Closed cathrinevaage closed 7 months ago

cathrinevaage commented 1 year ago

The components created by using the ?component flag are anonymous. This sets the components name to the filename.

Additionally, it reverts the changes made in #32. While attribute inheritance might have been broken then, that's not the case anymore. The changes in #32 also made it incompatible with the type definitions. Now it is more inline with FunctionalComponent again.

jpkleemans commented 1 year ago

Thanks for your PR. Could you please have a look at the failing tests?

jpkleemans commented 7 months ago

Closed because of inactivity