Skip to content

Commit

Permalink
Replace backslash with slash in path
Browse files Browse the repository at this point in the history
  • Loading branch information
jscissr committed Feb 28, 2015
1 parent d8a44fb commit d9d2f27
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ function closeOver (globals, src, file, opts) {
if (!opts.debug) {
return wrappedSource;
}
var sourceFile = path.relative(opts.basedir, file);
var sourceFile = path.relative(opts.basedir, file)
.replace(/\\/g, '/');
var sourceMap = combineSourceMap.create().addFile(
{ sourceFile: sourceFile, source: src},
{ line: 1 });
Expand Down

0 comments on commit d9d2f27

Please sign in to comment.