-
-
Notifications
You must be signed in to change notification settings - Fork 192
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
.jsonis not included in the defaults. - resolve does not preserve
require.extensionslist and assumes only ['.js'] #137 points out thatrequire.extensionsis not used as the defaults - Tape does not pass
require.extensionstoresolvetape-testing/tape#395 is related, but can be addressed with changes intape, unrelated to whateverresolvedoes. - (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
extensionsoption is used. #134)
There's some PRs out that are hoping to change the defaults:
- Update to use default
require.extensions#138 dynamically readsrequire.extensionson every call - Update default extensions to match node #145 replaces the default of
.jswith a hardcoded list of the defaultrequire.extensionsvalue
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels