From 64ce95b8fcbd560e33be53b46a4a2fe37ba44dc4 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Wed, 2 Oct 2024 23:02:31 +0200 Subject: [PATCH] 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 Reviewed-By: Guy Bedford Reviewed-By: Joyee Cheung Refs: https://github.com/nodejs/node/issues/52697 --- doc/api/modules.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/doc/api/modules.md b/doc/api/modules.md index fa5f2739830..86f5df057e9 100644 --- a/doc/api/modules.md +++ b/doc/api/modules.md @@ -171,16 +171,20 @@ relative, and based on the real path of the files making the calls to ## Loading ECMAScript modules using `require()` +> 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.