Closed Meroje closed 9 years ago
Fails on windows because of this: .split(':')
Example path: C:\Users\IEUser\Desktop\GitHub\node-liftoff\explicit\cwd
I'm conflicted about including this. It really belongs in resolve
, but @substack refused a PR adding support for this here: https://github.com/substack/node-resolve/pull/47
Any thoughts @phated?
If we have to use substack modules, then we should handle the case in our lib. Just make sure it works cross platform
http://nodejs.org/api/modules.html#modules_loading_from_the_global_folders
Note: On Windows, NODE_PATH is delimited by semicolons instead of colons
Thanks @Meroje!
released as 2.0.2
Thanks for your quick answers on this
This will pass NODE_PATH to resolve.sync when looking for the module to require, or empty array if undefined (default for most people) which behaves the same.