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)) {