(source: string)
| 93 | ) ?? 'src/main.js'; |
| 94 | |
| 95 | const getCss = (source: string): string => { |
| 96 | let css = ''; |
| 97 | render( |
| 98 | source, |
| 99 | {syncImport: true, compress: true}, |
| 100 | (error: Error | null, result?: {css: string}) => { |
| 101 | if (error != null) { |
| 102 | throw error; |
| 103 | } |
| 104 | if (result != null) { |
| 105 | css = result.css; |
| 106 | } |
| 107 | }, |
| 108 | ); |
| 109 | return css; |
| 110 | }; |
| 111 | |
| 112 | const getHtmlDoc = (html: string): string => html.trim(); |
| 113 |
no test coverage detected
searching dependent graphs…