module: handle relative paths in resolve paths
This commit adds support for relative paths in require.resolve()
's paths
option.
Fixes: https://github.com/nodejs/node/issues/27583
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines