We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ba0ba4 commit 66cd7bfCopy full SHA for 66cd7bf
doc/api/esm.md
@@ -424,8 +424,10 @@ Node.js supports the following conditions:
424
* `"import"` - matched when the package is loaded via `import` or
425
`import()`. Can reference either an ES module or CommonJS file, as both
426
`import` and `import()` can load either ES module or CommonJS sources.
427
+ _Always matched when the `"require"` condition is not matched._
428
* `"require"` - matched when the package is loaded via `require()`.
429
As `require()` only supports CommonJS, the referenced file must be CommonJS.
430
+ _Always matched when the `"import"` condition is not matched._
431
* `"node"` - matched for any Node.js environment. Can be a CommonJS or ES
432
module file. _This condition should always come after `"import"` or
433
`"require"`._
0 commit comments