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`

PR-URL: #40273
Reviewed-By: Guy Bedford <[email protected]>
Reviewed-By: Antoine du Hamel <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
MasonM authored and nodejs-github-bot committed Oct 3, 2021
1 parent 3d11baf commit 03d25fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/esm.md
Original file line number Diff line number Diff line change
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 03d25fe

Please sign in to comment.