Closed ranyitz closed 7 years ago
I would rather change resolve-from
to be like this module. Throw on the main export and silent when using resolveFrom.silent()
.
I agree,
The changes are on this PR - https://github.com/sindresorhus/resolve-from/pull/4
resolve-from@3 is out. Can you update this PR?
You also need to fix the merge conflict.
Updated, thanks for the quick response !
Thank you @ranyitz :)
No problem, Thank you @sindresorhus @SamVerschueren :)
If the module wasn't found,
req-from
is throwing an assertion error, this is because resolve-from is returningnull
in case the module wasn't found.The PR will throw a
module not found
like error, with the same code and message.another option would be to extend
resolve-from
in order to get the original error if that's a better solution.