(unquotedUrl: string)
| 2136 | }) |
| 2137 | } |
| 2138 | function 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 | } |
| 2149 | async function doUrlReplace( |
| 2150 | rawUrl: string, |
| 2151 | matched: string, |
no test coverage detected