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: #55199
Backport-PR-URL: #55217
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Guy Bedford <guybedford@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Refs: #52697
  • Loading branch information
aduh95 authored and ruyadorno committed Nov 27, 2024
1 parent 545c069 commit f1b9791
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions doc/api/modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,18 +171,18 @@ 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
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 Expand Up @@ -1265,7 +1265,6 @@ This section was moved to
[GLOBAL_FOLDERS]: #loading-from-the-global-folders
[`"main"`]: packages.md#main
[`"type"`]: packages.md#type
[`--experimental-require-module`]: cli.md#--experimental-require-module
[`ERR_REQUIRE_ASYNC_MODULE`]: errors.md#err_require_async_module
[`ERR_UNSUPPORTED_DIR_IMPORT`]: errors.md#err_unsupported_dir_import
[`MODULE_NOT_FOUND`]: errors.md#module_not_found
Expand Down

0 comments on commit f1b9791

Please sign in to comment.