diff options
author | Guy Bedford <guybedford@gmail.com> | 2019-11-15 16:28:59 -0500 |
---|---|---|
committer | Myles Borins <mylesborins@google.com> | 2019-11-16 23:26:49 -0800 |
commit | 250a9956561de336bc408d7ed184ba3a2610e272 (patch) | |
tree | 8601ea7b525b407f00abd4c83fb79022e39aea3b /doc | |
parent | d9efc7dc10e9cab4b5525b9ccc0750ccc3e613c1 (diff) | |
download | android-node-v8-250a9956561de336bc408d7ed184ba3a2610e272.tar.gz android-node-v8-250a9956561de336bc408d7ed184ba3a2610e272.tar.bz2 android-node-v8-250a9956561de336bc408d7ed184ba3a2610e272.zip |
esm: disable non-js exts outside package scopes
PR-URL: https://github.com/nodejs/node/pull/30501
Reviewed-By: Jan Krems <jan.krems@gmail.com>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/esm.md | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/doc/api/esm.md b/doc/api/esm.md index bf67cfb138..0aec8952cf 100644 --- a/doc/api/esm.md +++ b/doc/api/esm.md @@ -1337,8 +1337,7 @@ _defaultEnv_ is the conditional environment name priority array, > 1. Return _"module"_. > 1. Throw an _Unsupported File Extension_ error. > 1. Otherwise, -> 1. If _isMain_ is **true** or _url_ ends in _".js"_, _".json"_ or -> _".node"_, then +> 1. If _isMain_ is **true**, then > 1. Return _"commonjs"_. > 1. Throw an _Unsupported File Extension_ error. |