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
Update doc/api/esm.md
Co-authored-by: Rob Palmer <rob.palmer2@gmail.com>
  • Loading branch information
MylesBorins and robpalme authored May 4, 2020
commit 991af5d6edf8e3e73ced5bed7082c69a4f223479
2 changes: 1 addition & 1 deletion doc/api/esm.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ precedence over `"main"`. It is important to note that `"exports"` are not
specific to ES modules or CommonJS; `"main"` will be overridden by `"exports"`
if it exists. As such `"main"` cannot be used as a fallback for CommonJS
but it can be used as a fallback for legacy versions of Node.js that do not
support the exports field.
support the `"exports"` field.

[Conditional Exports][] can be used within `"exports"` to define different
package entry points per environment, including whether the package is
Expand Down