Skip to content

Commit

Permalink
Fix the use of paths in Npm.require on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Slava committed Feb 5, 2015
1 parent fe7611b commit 152b957
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/server/boot.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ Fiber(function () {
return require(name);
}

var nodeModuleBase = path.resolve(serverDir, fileInfo.node_modules);
var nodeModuleBase = path.resolve(serverDir,
files.convertToOSPath(fileInfo.node_modules));
var nodeModuleDir = path.resolve(nodeModuleBase, name);

// If the user does `Npm.require('foo/bar')`, then we should resolve to
Expand Down

0 comments on commit 152b957

Please sign in to comment.