Skip to content

Commit ff0e669

Browse files
MasonMdanielleadams
authored andcommitted
doc: fix typo in esm.md
_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]>
1 parent 00b5013 commit ff0e669

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

doc/api/esm.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1127,9 +1127,8 @@ The resolver can throw the following errors:
11271127
> **undefined**, then
11281128
> 1. Return **undefined**.
11291129
> 1. If _pjson.name_ is equal to _packageName_, then
1130-
> 1. Return the _resolved_ destructured value of the result of
1131-
> **PACKAGE_EXPORTS_RESOLVE**(_packageURL_, _subpath_, _pjson.exports_,
1132-
> _defaultConditions_).
1130+
> 1. Return the result of **PACKAGE_EXPORTS_RESOLVE**(_packageURL_,
1131+
> _packageSubpath_, _pjson.exports_, _defaultConditions_).
11331132
> 1. Otherwise, return **undefined**.
11341133

11351134
**PACKAGE_EXPORTS_RESOLVE**(_packageURL_, _subpath_, _exports_, _conditions_)

0 commit comments

Comments
 (0)