From 37facee9224013d3b162c391562db458ef41924e Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Sun, 26 Oct 2014 09:35:14 +0200 Subject: [PATCH] bs-commonjs-generator.js: always use forward slashes in the require path. Since `path.resolve` is using backslashes on Windows, we ended up with different files. Just replace those with forward slashes. --- grunt/bs-commonjs-generator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grunt/bs-commonjs-generator.js b/grunt/bs-commonjs-generator.js index 18542cc74f..e28900fb5e 100644 --- a/grunt/bs-commonjs-generator.js +++ b/grunt/bs-commonjs-generator.js @@ -8,7 +8,7 @@ module.exports = function generateCommonJSModule(grunt, srcFiles, destFilepath) var destDir = path.dirname(destFilepath); function srcPathToDestRequire(srcFilepath) { - var requirePath = path.relative(destDir, srcFilepath); + var requirePath = path.relative(destDir, srcFilepath).replace(/\\/g, '/'); return 'require(\'' + requirePath + '\')'; }