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

Function skipUrlReplacer

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

Source from the content-addressed store, hash-verified

2139 })
2140}
2141function skipUrlReplacer(unquotedUrl: string) {
2142 return (
2143 isExternalUrl(unquotedUrl) ||
2144 isDataUrl(unquotedUrl) ||
2145 unquotedUrl[0] === '#' ||
2146 functionCallRE.test(unquotedUrl) ||
2147 // skip if it is already a placeholder
2148 unquotedUrl.startsWith('__VITE_ASSET__') ||
2149 unquotedUrl.startsWith('__VITE_PUBLIC_ASSET__')
2150 )
2151}
2152async function doUrlReplace(
2153 rawUrl: string,
2154 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