From f990f6f505848243b2a996968232f367e1fb17ae Mon Sep 17 00:00:00 2001 From: Guy Bedford Date: Sat, 23 Jan 2021 13:33:20 +0200 Subject: [PATCH 1/3] doc: list Unsupported Directory Import resolve err --- doc/api/esm.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/api/esm.md b/doc/api/esm.md index 85a7146fc13f46..6feab3711a6144 100644 --- a/doc/api/esm.md +++ b/doc/api/esm.md @@ -1016,6 +1016,8 @@ The resolver can throw the following errors: subpath in the package for the given module. * _Package Import Not Defined_: Package imports do not define the specifier. * _Module Not Found_: The package or module requested does not exist. +* _Unsupported Directory Import_: There was an attempt to import a module + ending in a trailing _"/"_. ### Resolver Algorithm Specification From 5eeefe1187ef76b16116474d099df0cacb3c4bc7 Mon Sep 17 00:00:00 2001 From: Guy Bedford Date: Sat, 23 Jan 2021 14:24:54 +0200 Subject: [PATCH 2/3] clarify wording --- doc/api/esm.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/esm.md b/doc/api/esm.md index 6feab3711a6144..4168c66986ef6a 100644 --- a/doc/api/esm.md +++ b/doc/api/esm.md @@ -1016,8 +1016,8 @@ The resolver can throw the following errors: subpath in the package for the given module. * _Package Import Not Defined_: Package imports do not define the specifier. * _Module Not Found_: The package or module requested does not exist. -* _Unsupported Directory Import_: There was an attempt to import a module - ending in a trailing _"/"_. +* _Unsupported Directory Import_: The resolved path cooresponds to a directory, + which is not a supported target for module imports. ### Resolver Algorithm Specification From 3c12f31282738d12313a7e28786e722a1a78546f Mon Sep 17 00:00:00 2001 From: Guy Bedford Date: Sun, 24 Jan 2021 10:55:19 +0200 Subject: [PATCH 3/3] Update doc/api/esm.md Co-authored-by: Rich Trott --- 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 4168c66986ef6a..8d1980a4e0c6ad 100644 --- a/doc/api/esm.md +++ b/doc/api/esm.md @@ -1016,7 +1016,7 @@ The resolver can throw the following errors: subpath in the package for the given module. * _Package Import Not Defined_: Package imports do not define the specifier. * _Module Not Found_: The package or module requested does not exist. -* _Unsupported Directory Import_: The resolved path cooresponds to a directory, +* _Unsupported Directory Import_: The resolved path corresponds to a directory, which is not a supported target for module imports. ### Resolver Algorithm Specification