This website works better with JavaScript.
Home
Explore
Help
Sign In
lukechilds
/
node
mirror of
https://github.com/lukechilds/node.git
Watch
1
Star
0
Fork
0
Code
Issues
Projects
Releases
Wiki
Activity
13255
Commits
131
Branches
446
Tags
325 MiB
Tree:
c32d460747
node
/
test
/
fixtures
/
module-load-order
/
file4.reg
2 lines
29 B
Raw
Normal View
History
Standardise module load order for native and registered file extensions. 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
15 years ago
exports.file4
=
'file4.reg';