( css: string, replacer: CssUrlReplacer, )
| 2102 | } |
| 2103 | |
| 2104 | function rewriteImportCss( |
| 2105 | css: string, |
| 2106 | replacer: CssUrlReplacer, |
| 2107 | ): Promise<string> { |
| 2108 | return asyncReplace(css, importCssRE, async (match) => { |
| 2109 | const [matched, rawUrl] = match |
| 2110 | return await doImportCSSReplace(rawUrl, matched, replacer) |
| 2111 | }) |
| 2112 | } |
| 2113 | |
| 2114 | // TODO: image and cross-fade could contain a "url" that needs to be processed |
| 2115 | // https://drafts.csswg.org/css-images-4/#image-notation |
no test coverage detected