vite-svg-loader
vite-svg-loader copied to clipboard
Gracefully handle Vite virtual files
Vite supports virtual files like virtual:public?%2Fimages%2Fvisa.svg
.
This module attempts to load these files even if the default import type is url
because of the ?
in the virtual filename.
This produces tons of warnings like these:
For the time being it would be nice if this plugin just early-outted if the url starts with virtual: