Skip to content

Commit 05ee0db

Browse files
Update doc/api/esm.md
Co-Authored-By: Geoffrey Booth <GeoffreyBooth@users.noreply.github.com>
1 parent f2e8b26 commit 05ee0db

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

doc/api/esm.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,8 +364,8 @@ Node.js supports the following conditions:
364364
* `"default"` - the generic fallback that will always match. Can be a CommonJS
365365
or ES module file. _This condition should always come last._
366366
* `"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.
367+
`import()`. Can reference either an ES module or CommonJS file, as both
368+
`import` and `import()` can load either ES module or CommonJS sources.
369369
* `"node"` - matched for any Node.js environment. Can be a CommonJS or ES
370370
module file.
371371
* `"require"` - matched when the package is loaded via `require()`.

0 commit comments

Comments
 (0)