Skip to content

Commit d570995

Browse files
dnalborczyktargos
authored andcommitted
doc: remove non-existent entry-type flag
PR-URL: #27678 Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Guy Bedford <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
1 parent da102cd commit d570995

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

doc/api/esm.md

+3-6
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ cache, to avoid duplication. The same object will be returned in
426426
CommonJS if the JSON module has already been imported from the
427427
same path.
428428
429-
Assuming an `index.js` with
429+
Assuming an `index.mjs` with
430430
431431
<!-- eslint-skip -->
432432
```js
@@ -437,8 +437,8 @@ The `--experimental-json-modules` flag is needed for the module
437437
to work.
438438
439439
```bash
440-
node --experimental-modules --entry-type=module index.js # fails
441-
node --experimental-modules --entry-type=module --experimental-json-modules index.js # works
440+
node --experimental-modules index.mjs # fails
441+
node --experimental-modules --experimental-json-modules index.mjs # works
442442
```
443443
444444
## Experimental Loader hooks
@@ -593,9 +593,6 @@ of these top-level routines.
593593
594594
_isMain_ is **true** when resolving the Node.js application entry point.
595595
596-
When using the `--entry-type` flag, it overrides the ESM_FORMAT result while
597-
providing errors in the case of explicit conflicts.
598-
599596
<details>
600597
<summary>Resolver algorithm specification</summary>
601598

0 commit comments

Comments
 (0)