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>2019-12-05 05:14:48 +0300
committerGuy Bedford <guybedford@gmail.com>2019-12-13 01:35:08 +0300
commit357a99293e0132ed96afde56df5ce5aea2b550cd (patch)
tree49c5732ab3fe9d0b3727b1c3c688e63bb408ad41 /doc/api/modules.md
parentedf654d43e7140f6ac50aefc5dd3f0474bfc5cfe (diff)
module: conditional exports import condition
PR-URL: https://github.com/nodejs/node/pull/30799 Reviewed-By: Jan Krems <jan.krems@gmail.com> Reviewed-By: Myles Borins <myles.borins@gmail.com>
Diffstat (limited to 'doc/api/modules.md')
-rw-r--r--doc/api/modules.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/api/modules.md b/doc/api/modules.md
index 42f42c07fd7..5653fe8f424 100644
--- a/doc/api/modules.md
+++ b/doc/api/modules.md
@@ -241,7 +241,8 @@ RESOLVE_BARE_SPECIFIER(DIR, X)
g. If no such key can be found, throw "not found".
h. let RESOLVED_URL =
PACKAGE_EXPORTS_TARGET_RESOLVE(pathToFileURL(DIR/name), exports[key],
- subpath.slice(key.length)), as defined in the ESM resolver.
+ subpath.slice(key.length), ["node", "require"]), as defined in the ESM
+ resolver.
i. return fileURLToPath(RESOLVED_URL)
3. return DIR/X
```