Skip to content

Commit

Permalink
doc: update require(ESM) history and stability status
Browse files Browse the repository at this point in the history
PR-URL: nodejs#55199
Reviewed-By: Moshe Atlow <[email protected]>
Reviewed-By: Guy Bedford <[email protected]>
Reviewed-By: Joyee Cheung <[email protected]>
  • Loading branch information
aduh95 authored and joyeecheung committed Nov 12, 2024
1 parent 4f33767 commit 4e742c8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions doc/api/modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,18 +171,19 @@ relative, and based on the real path of the files making the calls to
## Loading ECMAScript modules using `require()`

<!-- YAML
added: v22.0.0
added:
- v22.0.0
- v20.17.0
changes:
- version: REPLACEME
pr-url: https://github.com/nodejs/node/pull/55085
description: require() now supports loading synchronous ES modules by default.
description: This feature is no longer behind the `--experimental-require-module` CLI flag.
- version: REPLACEME
pr-url: https://github.com/nodejs/node/pull/54563
description: Support `'module.exports'` interop export in `require(esm)`.
-->

> Stability: 1.1 - Active Development. Enable this API with the
> [`--experimental-require-module`][] CLI flag.
> Stability: 1.2 - Release candidate
The `.mjs` extension is reserved for [ECMAScript Modules][].
See [Determining module system][] section for more info
Expand Down

0 comments on commit 4e742c8

Please sign in to comment.