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>
This commit is contained in:
dnalborczyk 2019-05-13 14:11:04 -04:00 committed by Guy Bedford
parent f2061930c8
commit 545b59e18f

View File

@ -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 CommonJS if the JSON module has already been imported from the
same path. same path.
Assuming an `index.js` with Assuming an `index.mjs` with
<!-- eslint-skip --> <!-- eslint-skip -->
```js ```js
@ -437,8 +437,8 @@ The `--experimental-json-modules` flag is needed for the module
to work. to work.
```bash ```bash
node --experimental-modules --entry-type=module index.js # fails node --experimental-modules index.mjs # fails
node --experimental-modules --entry-type=module --experimental-json-modules index.js # works node --experimental-modules --experimental-json-modules index.mjs # works
``` ```
## Experimental Loader hooks ## Experimental Loader hooks
@ -593,9 +593,6 @@ of these top-level routines.
_isMain_ is **true** when resolving the Node.js application entry point. _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> <details>
<summary>Resolver algorithm specification</summary> <summary>Resolver algorithm specification</summary>