Skip to content
Prev Previous commit
Next Next commit
Lint
  • Loading branch information
GeoffreyBooth committed Aug 24, 2023
commit e00a6d0b5718d13087537748b1b18f8c46cac1cd
6 changes: 3 additions & 3 deletions doc/api/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ Otherwise, the file is loaded using the CommonJS module loader. See

### ECMAScript modules loader entry point caveat

When loading, the [ECMAScript module loader][Modules loaders] loads the program entry
point, the `node` command will accept as input only files with `.js`, `.mjs`, or
`.cjs` extensions; and with `.wasm` extensions when
When loading, the [ES module loader][Modules loaders] loads the program
entry point, the `node` command will accept as input only files with `.js`,
`.mjs`, or `.cjs` extensions; and with `.wasm` extensions when
[`--experimental-wasm-modules`][] is enabled.

## Options
Expand Down
4 changes: 2 additions & 2 deletions doc/api/module.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,8 @@ and anything it references via `import` or `require`. If the
`import('./my-app.js')` had instead been a static `import './my-app.js'`, the
app would have _already_ been loaded **before** the `http-to-https` hooks were
registered. This due to the ES modules specification, where static imports are
evaluated from the leaves of the tree first, then back to the trunk. There can be
static imports _within_ `my-app.js`, which will not be evaluated until
evaluated from the leaves of the tree first, then back to the trunk. There can
be static imports _within_ `my-app.js`, which will not be evaluated until
`my-app.js` is when it's dynamically imported.

`my-app.js` can also be CommonJS. Customization hooks will run for any
Expand Down