Open hecktarzuli opened 3 months ago
Running into the same issue. Has anyone found a way around this?
Is it possible to scope what vite-svg-loader processes via configuration to avoid processing of public
or virtual files?
Added #146 to address this
Vite supports virtual files like
virtual:public?%2Fimages%2Fvisa.svg
. This module attempts to load these files even if the default import type isurl
because of the?
in the virtual filename.This produces tons of warnings like these:![image](https://github.com/jpkleemans/vite-svg-loader/assets/2112282/dabeb92c-e875-46b4-bfc6-f5210c52445a)
For the time being it would be nice if this plugin just early-outted if the url starts with
virtual: