browserify / browserify-handbook

how to build modular applications with browserify
Other
4.58k stars 292 forks source link

Clarify search path #90

Closed GuiltyDolphin closed 6 years ago

GuiltyDolphin commented 6 years ago

In readme.markdown, it states:

If you require('./foo.js') from /beep/boop/bar.js, node will look for ./foo.js in /beep/boop/foo.js. Paths that start with a ./ or ../ are always local to the file that calls require().

But I don't think it makes sense to say it searches for foo.js in foo.js here, so I've updated it to read:

If you require('./foo.js') from /beep/boop/bar.js, node will look for foo.js in /beep/boop. Paths that start with a ./ or ../ are always local to the file that calls require().

Not sure if you want it to be /beep/boop/ rather than /beep/boop?

goto-bus-stop commented 6 years ago

yeah this makes sense to me. thanks!