From 0cd80c76ff42b53f4c81f6dced775aa4217e0189 Mon Sep 17 00:00:00 2001 From: Derek Wickern Date: Thu, 23 Oct 2014 16:27:53 -0700 Subject: [PATCH] Fix backslashes in source-map paths on Windows --- bin/uglifyjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/uglifyjs b/bin/uglifyjs index fc33f96f..954e4c67 100755 --- a/bin/uglifyjs +++ b/bin/uglifyjs @@ -252,7 +252,7 @@ async.eachLimit(files, 1, function (file, cb) { } if (ARGS.p != null) { if (P_RELATIVE) { - file = path.relative(path.dirname(ARGS.source_map), file); + file = path.relative(path.dirname(ARGS.source_map), file).replace(/\\/g, '/'); } else { var p = parseInt(ARGS.p, 10); if (!isNaN(p)) {