From: Derek Wickern Date: Thu, 23 Oct 2014 23:27:53 +0000 (-0700) Subject: Fix backslashes in source-map paths on Windows X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=718e4756134053bbcf62e9686f698fa3cb5a7e03;p=UglifyJS.git Fix backslashes in source-map paths on Windows --- 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)) {