Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5b074af

Browse filesBrowse 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 <guybedford@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 3b3aaa0 commit 5b074af
Copy full SHA for 5b074af

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Collapse file

‎doc/api/esm.md‎

Copy file name to clipboardExpand all lines: doc/api/esm.md
+2-2Lines changed: 2 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1142,8 +1142,8 @@ The resolver can throw the following errors:
11421142
> 1. Return **undefined**.
11431143
> 1. If _pjson.name_ is equal to _packageName_, then
11441144
> 1. Return the _resolved_ destructured value of the result of
1145-
> **PACKAGE_EXPORTS_RESOLVE**(_packageURL_, _subpath_, _pjson.exports_,
1146-
> _defaultConditions_).
1145+
> **PACKAGE_EXPORTS_RESOLVE**(_packageURL_, _packageSubpath_,
1146+
> _pjson.exports_, _defaultConditions_).
11471147
> 1. Otherwise, return **undefined**.
11481148

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

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.