From 03d25fe8160a5f8556ae3cef74bedc5523a5e6b1 Mon Sep 17 00:00:00 2001 From: Mason Malone Date: Thu, 30 Sep 2021 19:03:42 -0700 Subject: [PATCH] doc: fix typo in esm.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit _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: https://github.com/nodejs/node/pull/40273 Reviewed-By: Guy Bedford Reviewed-By: Antoine du Hamel Reviewed-By: Luigi Pinca Reviewed-By: Tobias Nießen Reviewed-By: James M Snell --- doc/api/esm.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/esm.md b/doc/api/esm.md index 124a585e4ab69d..aa3cbca62fdc6b 100644 --- a/doc/api/esm.md +++ b/doc/api/esm.md @@ -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_)