(html: string)
| 423 | } |
| 424 | |
| 425 | function hasTextBabelScript(html: string): boolean { |
| 426 | let found = false; |
| 427 | transformHtmlElementBlocks(html, 'script', ({ attrs, tag }) => { |
| 428 | if (getHtmlAttribute(attrs, 'type')?.toLowerCase() === 'text/babel') found = true; |
| 429 | return tag; |
| 430 | }); |
| 431 | return found; |
| 432 | } |
| 433 | |
| 434 | function jsxRuntimeScripts(): string { |
| 435 | return [ |
no test coverage detected