Open
Description
This issue encompasses anything that deals with "what the default extensions are/should be".
- opts.extensions should include '.json' #19 points out that
.json
is not included in the defaults. - resolve does not preserve
require.extensions
list and assumes only ['.js'] #137 points out thatrequire.extensions
is not used as the defaults - Tape does not pass
require.extensions
toresolve
tape-testing/tape#395 is related, but can be addressed with changes intape
, unrelated to whateverresolve
does. - (related but addressed: Node's require.resolve options #150, Absolute paths don't take opts.extensions into account #127, cannot resolve paths with extentions .min.js #90, Missing documentation on how the
extensions
option is used. #134)
There's some PRs out that are hoping to change the defaults:
- Update to use default
require.extensions
#138 dynamically readsrequire.extensions
on every call - Update default extensions to match node #145 replaces the default of
.js
with a hardcoded list of the defaultrequire.extensions
value
I'm opening this so I can close the other issues, and so any further discussion can happen here.
Please try to read all of the previous discussions before commenting.
Metadata
Assignees
Labels
No labels