-
-
Notifications
You must be signed in to change notification settings - Fork 33.5k
Closed
Labels
feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.moduleIssues and PRs related to the module subsystem.Issues and PRs related to the module subsystem.stale
Description
There is PR was implemented to support custom user --conditions
#34637
I wonder why not add this param to require.resolve
options
, which now contains only paths
, this would allow using require in some custom resolution scenarios, where it is not possible to use cli flag.
But also probably it should not fully mimic --conditions
which still puts leaves require
and node
conditions preferable, but this option should allow overriding the full list of the used condition while resolution.
Metadata
Metadata
Assignees
Labels
feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.moduleIssues and PRs related to the module subsystem.Issues and PRs related to the module subsystem.stale