(bundle: Bundle, dev: boolean, sourceMapSourcesRoot?: string)
| 30 | } |
| 31 | |
| 32 | function createCodeWithMap(bundle: Bundle, dev: boolean, sourceMapSourcesRoot?: string): * { |
| 33 | const map = bundle.getSourceMap({dev}); |
| 34 | const sourceMap = relativizeSourceMap( |
| 35 | typeof map === 'string' ? (JSON.parse(map): SourceMap) : map, |
| 36 | sourceMapSourcesRoot); |
| 37 | return { |
| 38 | code: bundle.getSource({dev}), |
| 39 | map: JSON.stringify(sourceMap), |
| 40 | }; |
| 41 | } |
| 42 | |
| 43 | function saveBundleAndMap( |
| 44 | bundle: Bundle, |
no test coverage detected
searching dependent graphs…