diff --git a/lib/6to5/generation/source-map.js b/lib/6to5/generation/source-map.js index 31fd5155a6..34f5d9d0cd 100644 --- a/lib/6to5/generation/source-map.js +++ b/lib/6to5/generation/source-map.js @@ -9,7 +9,8 @@ function SourceMap(position, opts, code) { if (opts.sourceMap) { this.map = new sourceMap.SourceMapGenerator({ - file: opts.sourceMapName + file: opts.sourceMapName, + sourceRoot: opts.sourceRoot }); this.map.setSourceContent(opts.sourceFileName, code);