Skip to content

Commit c7fe517

Browse files
committed
add warning note
1 parent 59baa76 commit c7fe517

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

doc/api/esm.md

+4
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,10 @@ The conditions supported in Node.js are matched in the following order:
354354
4. `"default"` - the generic fallback that will always match if no other
355355
more specific condition is matched first. Can be a CommonJS or ES module
356356
file.
357+
358+
> Setting any of the above flagged conditions for a published package is not
359+
recommended until they are unflagged to avoid breaking changes to packages in
360+
future.
357361

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

0 commit comments

Comments
 (0)