[Pkg-javascript-commits] [node-browser-pack] 106/141: Replace backslash with slash in path
Bastien Roucariès
rouca at moszumanska.debian.org
Thu May 4 10:23:29 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-browser-pack.
commit 0803908db012f3c6003b74e2c37b2c7caa3989b5
Author: Jan Schär <jscissr at gmail.com>
Date: Sat Feb 28 16:27:48 2015 +0100
Replace backslash with slash in path
For Windows compatibility. See
https://github.com/substack/node-browserify/blob/9.0.3/index.js#L719
---
index.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/index.js b/index.js
index 8d2af21..1814347 100644
--- a/index.js
+++ b/index.js
@@ -33,7 +33,8 @@ module.exports = function (opts) {
var entries = [];
var basedir = defined(opts.basedir, process.cwd());
var prelude = opts.prelude || defaultPrelude;
- var preludePath = opts.preludePath || path.relative(basedir, defaultPreludePath);
+ var preludePath = opts.preludePath ||
+ path.relative(basedir, defaultPreludePath).replace(/\\/g, '/');
var lineno = 1 + newlinesIn(prelude);
var sourcemap;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-browser-pack.git
More information about the Pkg-javascript-commits
mailing list