From 108ef992d9fb73dae835eeb8ff80cbec70d4c40f Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Tue, 25 Aug 2015 08:27:01 +0300 Subject: [PATCH] grunt/bs-commonjs-generator.js: reapply the fix for Windows slashes. [ci skip] --- 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 402a7b7429..af85f47721 100644 --- a/grunt/bs-commonjs-generator.js +++ b/grunt/bs-commonjs-generator.js @@ -16,7 +16,7 @@ module.exports = function generateCommonJSModule(grunt, srcFiles, destFilepath) var destDir = path.dirname(destFilepath); function srcPathToDestRequire(srcFilepath) { - return 'require(\'' + srcFilepath + '\')'; + return 'require(\'' + srcFilepath.replace(/\\/g, '/') + '\')'; } var moduleOutputJs = COMMONJS_BANNER + srcFiles.map(srcPathToDestRequire).join('\n');