substack/node-resolve — pull request #40 by cellvia (2014-03-20 12:15:37+00:00)
Title: faulty basedir does not always error properly in windows

faulty basedir does not always produce error properly in windows, because when the dirs are sliced down the final path has an improper prefix (resulting in paths like "C:node_modules\module\transform.js", which, at least in my case, causes it to attempt to resolve relative to cwd. this sometimes will succeed if you have said module in your cwd node_modules folder, and will break things down the line (module-deps for example)