Skip to content

doc: fix some errors in esm resolution algorithms

Rodrigo Muino Tomonari requested to merge github/fork/chjj/fix-esm-docs into main

Two errors I discovered when implementing the ESM resolution algorithm from scratch.

  1. PACKAGE_EXPORTS_RESOLVE - subpath is already prefixed with ./ due to the calling functions ensuring this.
  2. PACKAGE_TARGET_RESOLVE - A simple typo here. Order should be reversed.

Merge request reports

Loading