From 250a9956561de336bc408d7ed184ba3a2610e272 Mon Sep 17 00:00:00 2001 From: Guy Bedford Date: Fri, 15 Nov 2019 16:28:59 -0500 Subject: esm: disable non-js exts outside package scopes PR-URL: https://github.com/nodejs/node/pull/30501 Reviewed-By: Jan Krems Reviewed-By: Myles Borins --- doc/api/esm.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'doc') 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. -- cgit v1.2.3