diff options
author | XhmikosR <xhmikosr@gmail.com> | 2014-10-26 10:35:14 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2014-10-26 10:35:14 +0300 |
commit | 37facee9224013d3b162c391562db458ef41924e (patch) | |
tree | 6aebf3489f8aa56fbcabed7248573369f64acbaa /grunt | |
parent | bab3679d1031ac77503c0c14b56aeda885721584 (diff) |
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.
Diffstat (limited to 'grunt')
-rw-r--r-- | grunt/bs-commonjs-generator.js | 2 |
1 files changed, 1 insertions, 1 deletions
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 + '\')'; } |