From 21b45bf922d2768ce10d480a9c843ec20b92d9f3 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Fri, 14 Jan 2022 00:45:46 +0100 Subject: [PATCH] fixup! --- doc/api/packages.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/api/packages.md b/doc/api/packages.md index ca882c77627372..4aa743d948d336 100644 --- a/doc/api/packages.md +++ b/doc/api/packages.md @@ -103,7 +103,8 @@ There is the CommonJS module loader: * It treats all files that lack `.json` or `.node` extensions as JavaScript text files. * It cannot be used to load ECMAScript modules. Attempting to do so will result - in a [`ERR_REQUIRE_ESM`][] error. + in a [`ERR_REQUIRE_ESM`][] error. When used to load a JavaScript text file + that is not an ECMAScript module, it loads it as a CommonJS module. There is the ECMAScript module loader: