-
Notifications
You must be signed in to change notification settings - Fork 110
Open
Labels
Description
Description
According to the types definition file :
source-map-explorer/src/lib/types.d.ts
Lines 37 to 42 in e259470
| /** Represents single bundle */ | |
| export interface Bundle { | |
| code: File; | |
| map?: File; | |
| coverageRanges?: ColumnsRange[][]; | |
| } |
Bundle accepts code, map and coverageRanges.But it seems to not being taken in account in the output html file.
Steps to reproduce
// page is a puppeteer page object
const coverageData = await page.coverage.stopJSCoverage();
const bundle = {
code: await fetch('http://127.0.0.1:8182/vue3-sfc-loader.js').then(res => res.buffer()),
map: await fetch('http://127.0.0.1:8182/vue3-sfc-loader.js.map').then(res => res.buffer()),
coverageRanges: coverageData.find(e => e.url === 'http://127.0.0.1:8182/vue3-sfc-loader.js').ranges;
}
const result = await explore(bundle, {
output: { format: 'html' },
});
fs.writeFileSync('exploreOutput.html', result.output);
Expected behavior
coverage information to be included in exploreOutput.html
Environment
- OS: win7
- source-map-explorer Version 2.5.1