From 718e4756134053bbcf62e9686f698fa3cb5a7e03 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 bade20cc..a177cb6f 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)) { -- 2.34.1