Closed liuzw2579 closed 2 years ago
Thanks for reporting. I'll fix this in the next version
Just coped with this problem.
Since vite
auto import svg
file by default see, I don't think there is a config in vite
to avoid svg
files in dist. The only way to fix it is to write a plugin to clean all svg
files in close bundle hook.
This is fixed in v3.0.0
this plugin set
enforce: pre
, but svg file still handled by vite assets plugin iftransform
program move toload
, seem to fix it