doc: update require(ESM) history and stability status

PR-URL: https://github.com/nodejs/node/pull/55199
Backport-PR-URL: https://github.com/nodejs/node/pull/56927
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Guy Bedford <guybedford@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Refs: https://github.com/nodejs/node/issues/52697
This commit is contained in:
Antoine du Hamel authored and Marco Ippolito committed 2025-02-11 11:56:37 +01:00
1 parent dc66632261
commit 64ce95b8fc
1 file changed
+6 -2
+6 -2
View File
@@ -171,16 +171,20 @@ relative, and based on the real path of the files making the calls to
## Loading ECMAScript modules using `require()`
<!-- YAML
added: v20.17.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.2 - Release candidate
The `.mjs` extension is reserved for [ECMAScript Modules][].
See [Determining module system][] section for more info
regarding which files are parsed as ECMAScript modules.