Add an option to allow certain modules to search upwards #2
Labels
💵 Funded on Issuehunt
This issue has been funded on Issuehunt
enhancement
New feature or request
help wanted
Extra attention is needed
I had the need to allow a specific module to require upwards, so I added a private option
_allowedMethods
in 64ac0d0. I made it private because I'm not totally happy with it. It only works for top-level imports. So you can allowrequire('a')
to be searched upwards by includinga
in the option, but ifa
imports a module nameb
, there's no way to allowb
specifically, other than allowing any module froma
.Context: atomiclabs/hyperdex@d54a47c
The text was updated successfully, but these errors were encountered: