(filename)
| 48 | } |
| 49 | |
| 50 | function defineSourceMap(filename) { |
| 51 | const string = `{"version":3,"sources":["${filename}"],"names":[],"mappings":"AAAA,E,CAAK,S,CACL,E,CAAK,a,CAAgB,U","file":"${filename}","sourcesContent":[${JSON.stringify(css)}]}`; |
| 52 | const base64 = Buffer.from(string, 'utf8').toString('base64'); |
| 53 | const inline = `/*# sourceMappingURL=data:application/json;base64,${base64} */`; |
| 54 | |
| 55 | return { |
| 56 | string, |
| 57 | base64, |
| 58 | inline |
| 59 | }; |
| 60 | } |
| 61 | |
| 62 | function extractSourceMap(source) { |
| 63 | const m = source.match(/\/\*# sourceMappingURL=data:application\/json;base64,(.+) \*\//); |
no outgoing calls
no test coverage detected
searching dependent graphs…