We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb40dcb commit ff942c6Copy full SHA for ff942c6
doc/api/modules.markdown
@@ -200,7 +200,8 @@ in pseudocode of what require.resolve does:
200
a. Parse X/package.json, and look for "main" field.
201
b. let M = X + (json main field)
202
c. LOAD_AS_FILE(M)
203
- 2. LOAD_AS_FILE(X/index)
+ 2. If X/index.js is a file, load X/index.js as JavaScript text. STOP
204
+ 3. If X/index.node is a file, load X/index.node as binary addon. STOP
205
206
LOAD_NODE_MODULES(X, START)
207
1. let DIRS=NODE_MODULES_PATHS(START)
0 commit comments