vite-svg-loader icon indicating copy to clipboard operation
vite-svg-loader copied to clipboard

Gracefully handle Vite virtual files

Open hecktarzuli opened this issue 3 months ago • 2 comments

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: image

For the time being it would be nice if this plugin just early-outted if the url starts with virtual:

hecktarzuli avatar Mar 19 '24 16:03 hecktarzuli