Skip to content

Commit

Permalink
feat: add support for 1:1 sourcesContent
Browse files Browse the repository at this point in the history
  • Loading branch information
sjoerdvisscher committed Oct 4, 2020
1 parent b11b90f commit ac3c79a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/v8-to-istanbul.js
Expand Up @@ -63,6 +63,8 @@ module.exports = class V8ToIstanbul {
originalRawSource = this.sources.sourceMap.sourcemap.sourcesContent[0]
} else if (this.sources.originalSource) {
originalRawSource = this.sources.originalSource
} else if (this.sourceMap.sourcesContent && this.sourceMap.sourcesContent[0]) {
originalRawSource = this.sourceMap.sourcesContent[0]
} else {
originalRawSource = await readFile(this.path, 'utf8')
}
Expand Down

0 comments on commit ac3c79a

Please sign in to comment.