(id: string)
| 383 | } |
| 384 | |
| 385 | function isPotentialCssRootFile(id: string) { |
| 386 | if (id.includes('/.vite/')) return false |
| 387 | |
| 388 | // Don't intercept special static asset resources |
| 389 | if (SPECIAL_QUERY_RE.test(id)) return false |
| 390 | if (COMMON_JS_PROXY_RE.test(id)) return false |
| 391 | |
| 392 | let extension = getExtension(id) |
| 393 | let isCssFile = extension === 'css' || id.includes('&lang.css') || id.match(INLINE_STYLE_ID_RE) |
| 394 | |
| 395 | return isCssFile |
| 396 | } |
| 397 | |
| 398 | function idToPath(id: string) { |
| 399 | return path.resolve(id.replace(/\?.*$/, '')) |
no test coverage detected