From ff6a5d0990af7d6e3129d6ebca58681bbe081c13 Mon Sep 17 00:00:00 2001 From: Thomas Darling Date: Mon, 17 Jul 2017 21:52:11 +0200 Subject: [PATCH 1/2] Fix missing path normalization, causing empty sourcesContent in source maps. --- lib/sourcemaps.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sourcemaps.js b/lib/sourcemaps.js index f31e279..c3bd34a 100644 --- a/lib/sourcemaps.js +++ b/lib/sourcemaps.js @@ -45,7 +45,7 @@ exports.concatenateSourceMaps = function(outFile, mapsWithOffsets, basePath, sou if (sourceMapContents && map.sourcesContent) { for (var i=0; i Date: Fri, 21 Jul 2017 18:14:09 +0200 Subject: [PATCH 2/2] Fix incorrect path normalization, causing wrong source paths in source maps. --- lib/sourcemaps.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/sourcemaps.js b/lib/sourcemaps.js index c3bd34a..9b81d9a 100644 --- a/lib/sourcemaps.js +++ b/lib/sourcemaps.js @@ -45,7 +45,7 @@ exports.concatenateSourceMaps = function(outFile, mapsWithOffsets, basePath, sou if (sourceMapContents && map.sourcesContent) { for (var i=0; i