Commit 7c5fabe4 authored by Mathias Schreck's avatar Mathias Schreck Committed by Fedor Indutny
Browse files

doc: fix modules require.resolve documentation



The behavior of the `node_modules` lookup algorithm was
changed in #1177, but the documentation was not updated completely
to describe the new behavior.

The pseudocode of the lookup algorithm did not metion that
`index.json` is tried to be loaded if you require a folder.

Reviewed-By: default avatarFedor Indutny <fedor@indutny.com>
parent 627c1a92
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment