Skip to content

Commit

Permalink
doc: remove non-existent entry-type flag
Browse files Browse the repository at this point in the history
PR-URL: #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>
  • Loading branch information
dnalborczyk authored and targos committed May 17, 2019
1 parent da102cd commit d570995
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions doc/api/esm.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
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

0 comments on commit d570995

Please sign in to comment.