Skip to content

Commit

Permalink
[node_resolve plugin] Include global module paths when resolving
Browse files Browse the repository at this point in the history
Closes #121
  • Loading branch information
marijnh committed Dec 28, 2015
1 parent 2ffd402 commit 44a31f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/node_resolve.js
Expand Up @@ -27,7 +27,7 @@

var parentModule = {
id: fullParent,
paths: module_._nodeModulePaths(parentDir)
paths: module_._nodeModulePaths(parentDir).concat(module_.globalPaths)
}
try {
return module_._resolveFilename(name, parentModule)
Expand Down

0 comments on commit 44a31f3

Please sign in to comment.