diff --git a/src/loaders/vite.ts b/src/loaders/vite.ts index f7458c0d..44e3bbaf 100644 --- a/src/loaders/vite.ts +++ b/src/loaders/vite.ts @@ -48,7 +48,7 @@ export function svgLoader(options?: SvgLoaderOptions) { enforce: 'pre' as const, async load(id: string) { - if (!id.match(svgRegex)) { + if (!id.match(svgRegex) || id.startsWith('virtual:public')) { return }