Skip to content

Commit

Permalink
grunt/bs-commonjs-generator.js: reapply the fix for Windows slashes.
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
XhmikosR committed Aug 25, 2015
1 parent a0ba1f1 commit 108ef99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grunt/bs-commonjs-generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 108ef99

Please sign in to comment.