Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuy Bedford <guybedford@gmail.com>2020-04-27 07:40:01 +0300
committerGuy Bedford <guybedford@gmail.com>2020-04-30 08:10:35 +0300
commit2496db8e0946de58911cac7b495d854cb18c179d (patch)
treec7ce1226344e4205630c3c330bbbb798924ac501 /doc/api/esm.md
parent2e441e152fdda36a8ae9d97e2a312e024494456f (diff)
module: no type module resolver side effects
PR-URL: https://github.com/nodejs/node/pull/33086 Reviewed-By: Jan Krems <jan.krems@gmail.com> Reviewed-By: Geoffrey Booth <webmaster@geoffreybooth.com>
Diffstat (limited to 'doc/api/esm.md')
-rw-r--r--doc/api/esm.md7
1 files changed, 0 insertions, 7 deletions
diff --git a/doc/api/esm.md b/doc/api/esm.md
index 49c467effbc..5047600f988 100644
--- a/doc/api/esm.md
+++ b/doc/api/esm.md
@@ -1601,13 +1601,6 @@ The resolver can throw the following errors:
> 1. Return **PACKAGE_EXPORTS_TARGET_RESOLVE**(_packageURL_,
> _mainExport_, _""_).
> 1. Throw a _Package Path Not Exported_ error.
-> 1. If _pjson.main_ is a String, then
-> 1. Let _resolvedMain_ be the URL resolution of _packageURL_, "/", and
-> _pjson.main_.
-> 1. If the file at _resolvedMain_ exists, then
-> 1. Return _resolvedMain_.
-> 1. If _pjson.type_ is equal to _"module"_, then
-> 1. Throw a _Module Not Found_ error.
> 1. Let _legacyMainURL_ be the result applying the legacy
> **LOAD_AS_DIRECTORY** CommonJS resolver to _packageURL_, throwing a
> _Module Not Found_ error for no resolution.