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 f2e8b26 commit 05ee0dbCopy full SHA for 05ee0db
1 file changed
doc/api/esm.md
@@ -364,8 +364,8 @@ Node.js supports the following conditions:
364
* `"default"` - the generic fallback that will always match. Can be a CommonJS
365
or ES module file. _This condition should always come last._
366
* `"import"` - matched when the package is loaded via `import` or
367
- `import()`. Can be any module format, this field does not set the type
368
- interpretation.
+ `import()`. Can reference either an ES module or CommonJS file, as both
+ `import` and `import()` can load either ES module or CommonJS sources.
369
* `"node"` - matched for any Node.js environment. Can be a CommonJS or ES
370
module file.
371
* `"require"` - matched when the package is loaded via `require()`.
0 commit comments