summaryrefslogtreecommitdiff
path: root/doc/api/esm.md
diff options
context:
space:
mode:
authordnalborczyk <dnalborczyk@gmail.com>2019-05-13 14:11:04 -0400
committerGuy Bedford <guybedford@gmail.com>2019-05-17 01:44:41 +0200
commit545b59e18f742cecbeeb7aeae241f8ed55cec268 (patch)
treeda69d8a3e1658a4ea3e8cc380311e457082a0303 /doc/api/esm.md
parentf2061930c83cb579410a7f26bed726d6568575e3 (diff)
downloadandroid-node-v8-545b59e18f742cecbeeb7aeae241f8ed55cec268.tar.gz
android-node-v8-545b59e18f742cecbeeb7aeae241f8ed55cec268.tar.bz2
android-node-v8-545b59e18f742cecbeeb7aeae241f8ed55cec268.zip
doc: remove non-existent entry-type flag
PR-URL: https://github.com/nodejs/node/pull/27678 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Guy Bedford <guybedford@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Diffstat (limited to 'doc/api/esm.md')
-rw-r--r--doc/api/esm.md9
1 files changed, 3 insertions, 6 deletions
diff --git a/doc/api/esm.md b/doc/api/esm.md
index 135a904e2d..2d1d4085e7 100644
--- a/doc/api/esm.md
+++ b/doc/api/esm.md
@@ -426,7 +426,7 @@ cache, to avoid duplication. The same object will be returned in
CommonJS if the JSON module has already been imported from the
same path.
-Assuming an `index.js` with
+Assuming an `index.mjs` with
<!-- eslint-skip -->
```js
@@ -437,8 +437,8 @@ The `--experimental-json-modules` flag is needed for the module
to work.
```bash
-node --experimental-modules --entry-type=module index.js # fails
-node --experimental-modules --entry-type=module --experimental-json-modules index.js # works
+node --experimental-modules index.mjs # fails
+node --experimental-modules --experimental-json-modules index.mjs # works
```
## Experimental Loader hooks
@@ -593,9 +593,6 @@ of these top-level routines.
_isMain_ is **true** when resolving the Node.js application entry point.
-When using the `--entry-type` flag, it overrides the ESM_FORMAT result while
-providing errors in the case of explicit conflicts.
-
<details>
<summary>Resolver algorithm specification</summary>