Skip to content

Commit

Permalink
doc: fix typo in esm.md
Browse files Browse the repository at this point in the history
_subpath_ is not defined in this context. This is pretty clearly meant
to be _packageSubpath_, which is the second argument to
`PACKAGE_SELF_RESOLVE`
  • Loading branch information
MasonM committed Oct 1, 2021
1 parent 1e89238 commit 85d1f7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/esm.md
Expand Up @@ -1145,7 +1145,7 @@ The resolver can throw the following errors:
> 1. Return **undefined**.
> 1. If _pjson.name_ is equal to _packageName_, then
> 1. Return the result of **PACKAGE_EXPORTS_RESOLVE**(_packageURL_,
> _subpath_, _pjson.exports_, _defaultConditions_).
> _packageSubpath_, _pjson.exports_, _defaultConditions_).
> 1. Otherwise, return **undefined**.

**PACKAGE_EXPORTS_RESOLVE**(_packageURL_, _subpath_, _exports_, _conditions_)
Expand Down

0 comments on commit 85d1f7e

Please sign in to comment.