mirror of
https://github.com/nodejs/node.git
synced 2024-11-30 07:27:22 +01:00
0a3eff8021
This patch standardises the load order for modules. Highest priority is trying to load exactly the file the user specified, followed by native extensions, followed by registered extra extensions, etc. In full, if we require('foo') having registered '.coffee' as an alternative extension, we try and load the following files in order: foo foo.js foo.node foo.coffee foo/index.js foo/index.node foo/index.coffee
2 lines
30 B
Plaintext
2 lines
30 B
Plaintext
exports.file4 = 'file4.reg2';
|