Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: remove non-existent entry-type flag #27678

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions doc/api/esm.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.js # fails
guybedford marked this conversation as resolved.
Show resolved Hide resolved
node --experimental-modules --experimental-json-modules index.js # works
guybedford marked this conversation as resolved.
Show resolved Hide resolved
```

## Experimental Loader hooks
Expand Down Expand Up @@ -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>

Expand Down