From 348d865652c8b87c8bb3baf758cab4d8bfbbb50f 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 Reviewed-By: Moshe Atlow Reviewed-By: Guy Bedford Reviewed-By: Joyee Cheung --- doc/api/modules.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/doc/api/modules.md b/doc/api/modules.md index 36f325f3878109..86f5df057e9a2f 100644 --- a/doc/api/modules.md +++ b/doc/api/modules.md @@ -171,15 +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.