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
Update doc/api/esm.md
Co-Authored-By: Geoffrey Booth <GeoffreyBooth@users.noreply.github.com>
  • Loading branch information
guybedford and GeoffreyBooth authored Sep 8, 2019
commit 9f7bc644df47d7da8796817f15e0dc6f64dbab1b
3 changes: 2 additions & 1 deletion doc/api/esm.md
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,8 @@ Exports can also be used to map the main entry point of a package:
```

where the "." indicates loading the package without any subpath. Exports will
always override any existing main for both CJS and ESM.
always override any existing `"main"` value for both CommonJS and
ES module packages.

For packages with only a main entry point, an `"exports"` value of just
a string is also supported:
Expand Down