You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is PR was implemented to support custom user --conditions #34637
I wonder why not add this param to require.resolveoptions, 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.
There has been no activity on this feature request for 5 months and it is unlikely to be implemented. It will be closed 6 months after the last non-automated comment.
There has been no activity on this feature request and it is being closed. If you feel closing this issue is not the right thing to do, please leave a comment.
Activity
aduh95 commentedon Mar 21, 2021
wclr commentedon Mar 21, 2021
@aduh95 What is supported?
This issue is about programmatic options of
require.resolve, to be able to use conditions while resolving using API:aduh95 commentedon Mar 21, 2021
Oops, sorry I clearly misread the OP.
github-actions commentedon Mar 22, 2022
There has been no activity on this feature request for 5 months and it is unlikely to be implemented. It will be closed 6 months after the last non-automated comment.
For more information on how the project manages feature requests, please consult the feature request management document.
github-actions commentedon Apr 22, 2022
There has been no activity on this feature request and it is being closed. If you feel closing this issue is not the right thing to do, please leave a comment.
For more information on how the project manages feature requests, please consult the feature request management document.