doc: fix some errors in esm resolution algorithms
Two errors I discovered when implementing the ESM resolution algorithm from scratch.
-
PACKAGE_EXPORTS_RESOLVE
-subpath
is already prefixed with./
due to the calling functions ensuring this. -
PACKAGE_TARGET_RESOLVE
- A simple typo here. Order should be reversed.