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: Geoffrey Booth <GeoffreyBooth@users.noreply.github.com>
  • Loading branch information
guybedford and GeoffreyBooth authored Sep 8, 2019
commit 690237dafb816c5d95667e07e128f44f0d281edf
3 changes: 2 additions & 1 deletion doc/api/esm.md
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,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.
Comment thread
guybedford marked this conversation as resolved.
Outdated

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

<!-- eslint-skip -->
```js
Expand Down