From 1f258e9e9c7d363907c81576a4017203803fcd5a Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Sun, 16 Nov 2014 19:19:07 +1100 Subject: [PATCH] add sourceRoot to source map --- lib/6to5/generation/source-map.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);