Fix backslashes in source-map paths on Windows

This commit is contained in:
Derek Wickern
2014-10-23 16:27:53 -07:00
committed by Richard van Velzen
parent aa5dd15352
commit 718e475613

View File

@@ -252,7 +252,7 @@ async.eachLimit(files, 1, function (file, cb) {
} }
if (ARGS.p != null) { if (ARGS.p != null) {
if (P_RELATIVE) { if (P_RELATIVE) {
file = path.relative(path.dirname(ARGS.source_map), file); file = path.relative(path.dirname(ARGS.source_map), file).replace(/\\/g, '/');
} else { } else {
var p = parseInt(ARGS.p, 10); var p = parseInt(ARGS.p, 10);
if (!isNaN(p)) { if (!isNaN(p)) {