Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add warning note
  • Loading branch information
guybedford committed Dec 10, 2019
commit c7fe517d6a6ec65ed22bb25f5208325a9d6f532c
4 changes: 4 additions & 0 deletions doc/api/esm.md
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,10 @@ The conditions supported in Node.js are matched in the following order:
4. `"default"` - the generic fallback that will always match if no other
more specific condition is matched first. Can be a CommonJS or ES module
file.

> Setting any of the above flagged conditions for a published package is not
recommended until they are unflagged to avoid breaking changes to packages in
future.

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