Skip to content

Commit 21b45bf

Browse files
committed
fixup!
1 parent 2cea6a8 commit 21b45bf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/api/packages.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ There is the CommonJS module loader:
103103
* It treats all files that lack `.json` or `.node` extensions as JavaScript
104104
text files.
105105
* It cannot be used to load ECMAScript modules. Attempting to do so will result
106-
in a [`ERR_REQUIRE_ESM`][] error.
106+
in a [`ERR_REQUIRE_ESM`][] error. When used to load a JavaScript text file
107+
that is not an ECMAScript module, it loads it as a CommonJS module.
107108

108109
There is the ECMAScript module loader:
109110

0 commit comments

Comments
 (0)