(map: SourceMap | string)
| 134 | } |
| 135 | |
| 136 | export function genSourceMapUrl(map: SourceMap | string): string { |
| 137 | if (typeof map !== 'string') { |
| 138 | map = JSON.stringify(map) |
| 139 | } |
| 140 | return `data:application/json;base64,${Buffer.from(map).toString('base64')}` |
| 141 | } |
| 142 | |
| 143 | export function getCodeWithSourcemap( |
| 144 | type: 'js' | 'css', |
no outgoing calls
no test coverage detected