jpkleemans / vite-svg-loader

Vite plugin to load SVG files as Vue components
MIT License
554 stars 58 forks source link

Removing check that matches regex #100

Closed gkatsanos closed 1 year ago

gkatsanos commented 1 year ago

This way any non-predefined value just defaults to the defaultImport. Returning undefined isn't really helping the user in any case and probably locks out any legacy svg imports that would like to use vite-svg-loader but cant change their query params because of backwards compatibility.

resolves https://github.com/jpkleemans/vite-svg-loader/issues/99