(match, baseDir)
| 78 | } |
| 79 | |
| 80 | async function inlineJs(match, baseDir) { |
| 81 | const src = attr(match, 'src'); |
| 82 | if (!src) return match; |
| 83 | const js = await readAsset(src, 'utf8', baseDir); |
| 84 | return `<script>${js}</script>`; |
| 85 | } |
| 86 | |
| 87 | async function inlineImg(match, baseDir) { |
| 88 | const src = attr(match, 'src'); |
no test coverage detected