jpkleemans / vite-svg-loader

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

Generated icon component file has variables which conflicts with nuxt3 build #135

Open nick-bohdanov opened 7 months ago

nick-bohdanov commented 7 months ago

I'm using this library in my vue3 and vite project which is a ui plugin i use in my nuxt3 application.

Everything works good to me, until I do production build in nuxt3. Since nuxt3 have autoimport feature during build phase it has conflicts with random variables in my component icons.

Here is my gnerated icon file image

And here is error during build image

Is this possible to have some options for compileTemplate to hide local variables, or something like that?