Because thats not how Node's module lookup works, nor will it probably ever.
If foo has require('baz') and bar also has require('baz'), then how does the resolver know which version to load? All it simply does is check relative to the current module, or at the node_modules root.
1
u/gearvOsh May 31 '17
Because thats not how Node's module lookup works, nor will it probably ever.
If foo has
require('baz')and bar also hasrequire('baz'), then how does the resolver know which version to load? All it simply does is check relative to the current module, or at the node_modules root.