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:
parent
f2061930c8
commit
545b59e18f
@ -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>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user