Fix backslashes in source-map paths on Windows
authorDerek Wickern <dwickern@s4isystems.com>
Thu, 23 Oct 2014 23:27:53 +0000 (16:27 -0700)
committerRichard van Velzen <rvanvelzen1@gmail.com>
Sun, 4 Jan 2015 18:08:19 +0000 (19:08 +0100)
bin/uglifyjs

index bade20c..a177cb6 100755 (executable)
@@ -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)) {