(unquotedUrl: string)
| 2139 | }) |
| 2140 | } |
| 2141 | function 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 | } |
| 2152 | async function doUrlReplace( |
| 2153 | rawUrl: string, |
| 2154 | matched: string, |
no test coverage detected