Skip to content

Commit 216914b

Browse files
authored
doc: remove non-existent entry-type flag
1 parent ef51cc8 commit 216914b

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

doc/api/esm.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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.js # fails
441+
node --experimental-modules --experimental-json-modules index.js # 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)