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
I'm trying to make NFT load Node modules from additional paths that aren't necessarily ancestors of the importer's directory. If I understand correctly, the only way to do this currently is to supply a resolve hook, but that means having to rewrite the entire resolving logic.
I'm trying to make NFT load Node modules from additional paths that aren't necessarily ancestors of the importer's directory. If I understand correctly, the only way to do this currently is to supply a
resolve
hook, but that means having to rewrite the entire resolving logic.It'd be great to equip
resolvePackage()
with the ability to find modules in additional paths, via a configuration property that would work like esbuild'snodePaths
property, Webpack'sresolve.modules
or even the Node'sNODE_PATH
environment variable.I'd be happy to submit a PR, but I wanted to first check if you'd be open to it, or whether you have a different recommendation.
Thanks in advance!
The text was updated successfully, but these errors were encountered: