Skip to content

Commit 59baa76

Browse files
committed
maintain "default" in documentation
1 parent 1fe09b1 commit 59baa76

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

doc/api/esm.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,9 @@ The conditions supported in Node.js are matched in the following order:
351351
`import()`. Can be any module format, this field does not set the type
352352
interpretation. _This is currently only supported behind the
353353
`--experimental-conditional-exports` flag._
354+
4. `"default"` - the generic fallback that will always match if no other
355+
more specific condition is matched first. Can be a CommonJS or ES module
356+
file.
354357

355358
Using the `"require"` condition it is possible to define a package that will
356359
have a different exported value for CommonJS and ES modules, which can be a

0 commit comments

Comments
 (0)