diff --git a/index.js b/index.js index 3ebf3555..598838eb 100755 --- a/index.js +++ b/index.js @@ -450,7 +450,8 @@ class NYC { const context = libReport.createContext({ dir: this.reportDirectory(), watermarks: this.config.watermarks, - coverageMap: await this.getCoverageMapFromAllCoverageFiles() + coverageMap: await this.getCoverageMapFromAllCoverageFiles(), + sourceFinder: this.sourceMaps.sourceFinder }) this.reporter.forEach((_reporter) => { diff --git a/lib/source-maps.js b/lib/source-maps.js index 8a3914cd..b563bc3a 100644 --- a/lib/source-maps.js +++ b/lib/source-maps.js @@ -14,6 +14,7 @@ class SourceMaps { this.cacheDirectory = opts.cacheDirectory this.loadedMaps = {} this._sourceMapCache = libSourceMaps.createSourceMapStore() + this.sourceFinder = this._sourceMapCache.sourceFinder } cachedPath (source, hash) {