MCPcopy
hub / github.com/vitejs/vite / skipUrlReplacer

Function skipUrlReplacer

packages/vite/src/node/plugins/css.ts:2138–2148  ·  view source on GitHub ↗
(unquotedUrl: string)

Source from the content-addressed store, hash-verified

2136 })
2137}
2138function skipUrlReplacer(unquotedUrl: string) {
2139 return (
2140 isExternalUrl(unquotedUrl) ||
2141 isDataUrl(unquotedUrl) ||
2142 unquotedUrl[0] === '#' ||
2143 functionCallRE.test(unquotedUrl) ||
2144 // skip if it is already a placeholder
2145 unquotedUrl.startsWith('__VITE_ASSET__') ||
2146 unquotedUrl.startsWith('__VITE_PUBLIC_ASSET__')
2147 )
2148}
2149async function doUrlReplace(
2150 rawUrl: string,
2151 matched: string,

Callers 3

doUrlReplaceFunction · 0.85
doImportCSSReplaceFunction · 0.85
compileLightningCSSFunction · 0.85

Calls 2

isExternalUrlFunction · 0.90
isDataUrlFunction · 0.90

Tested by

no test coverage detected