damianstasik / vite-svg

Use SVG files as Vue components with Vite
MIT License
105 stars 14 forks source link

feat: make "component" the `defaultExport` #33

Open aleclarson opened 3 years ago

aleclarson commented 3 years ago

The default behavior in Vite 2.0 allows importing .svg files as URLs, so this plugin is only good for importing as a component.

BREAKING CHANGE

aleclarson commented 3 years ago

Alternatively, we can remove this defaultExport option altogether.