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 1fe09b1 commit 59baa76Copy full SHA for 59baa76
doc/api/esm.md
@@ -351,6 +351,9 @@ The conditions supported in Node.js are matched in the following order:
351
`import()`. Can be any module format, this field does not set the type
352
interpretation. _This is currently only supported behind the
353
`--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.
357
358
Using the `"require"` condition it is possible to define a package that will
359
have a different exported value for CommonJS and ES modules, which can be a
0 commit comments