From 6f05466cf5e3cf9a06a3532d244c4697c3bf0136 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Tue, 11 Nov 2014 13:36:59 +1100 Subject: [PATCH] normalise windows path separators to unix --- lib/6to5/file.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/6to5/file.js b/lib/6to5/file.js index 2f5127f350..291b6601ef 100644 --- a/lib/6to5/file.js +++ b/lib/6to5/file.js @@ -33,6 +33,9 @@ File.normaliseOptions = function (opts) { runtime: false }); + // normalise windows path separators to unix + opts.filename = opts.filename.replace(/\\/g, "/"); + _.defaults(opts, { sourceFileName: opts.filename, sourceMapName: opts.filename