Skip to content

Commit

Permalink
fix: skip public folder assets (#285)
Browse files Browse the repository at this point in the history
  • Loading branch information
jd1378 authored Jul 11, 2024
1 parent 0f73036 commit fd973e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/loaders/vite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit fd973e7

Please sign in to comment.