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 fccd01b commit 1d63497Copy full SHA for 1d63497
doc/api/esm.md
@@ -101,6 +101,9 @@ future-proof the package in case the default type of Node.js ever changes, and
101
it will also make things easier for build tools and loaders to determine how the
102
files in the package should be interpreted.
103
104
+Regardless of the value of the `"type"` field, `.mjs` files are always treated
105
+as ES modules and `.cjs` files are always treated as CommonJS modules.
106
+
107
### Package Scope and File Extensions
108
109
A folder containing a `package.json` file, and all subfolders below that
0 commit comments