Closed
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.