From d570995427ab6c8f484500887f5ca60412760da0 Mon Sep 17 00:00:00 2001 From: dnalborczyk Date: Mon, 13 May 2019 14:11:04 -0400 Subject: [PATCH] doc: remove non-existent entry-type flag PR-URL: https://github.com/nodejs/node/pull/27678 Reviewed-By: Ruben Bridgewater Reviewed-By: Guy Bedford Reviewed-By: Rich Trott Reviewed-By: Trivikram Kamat --- doc/api/esm.md | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/doc/api/esm.md b/doc/api/esm.md index 135a904e2d79ba..2d1d4085e7359e 100644 --- a/doc/api/esm.md +++ b/doc/api/esm.md @@ -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 ```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. -
Resolver algorithm specification