poppa / sveltekit-svg

SvelteKit plugin that makes it possible to import SVG files as Svelte components, inline SVG code or urls
MIT License
235 stars 23 forks source link

Update `transform` params for Vite 2.7.0 #10

Closed james-camilleri closed 2 years ago

james-camilleri commented 2 years ago

The plugin blows up on Vite 2.7.0 because of the API change on the transform (https://github.com/vitejs/vite/blob/v2.7.1/packages/vite/CHANGELOG.md#270-2021-12-07). This is a quick (temporary) fix until 2.7.0 is more widely adopted and the plugin won't need to support both.

poppa commented 2 years ago

Thank you, much appreciated :)