We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cea6a8 commit 21b45bfCopy full SHA for 21b45bf
doc/api/packages.md
@@ -103,7 +103,8 @@ There is the CommonJS module loader:
103
* It treats all files that lack `.json` or `.node` extensions as JavaScript
104
text files.
105
* It cannot be used to load ECMAScript modules. Attempting to do so will result
106
- in a [`ERR_REQUIRE_ESM`][] error.
+ 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.
108
109
There is the ECMAScript module loader:
110
0 commit comments