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
handle falsy exports
  • Loading branch information
guybedford committed Jul 30, 2019
commit 5d9199e9e93486b2a8c21aff7a69a40792b094bc
2 changes: 2 additions & 0 deletions doc/api/esm.md
Original file line number Diff line number Diff line change
Expand Up @@ -723,6 +723,8 @@ _isMain_ is **true** when resolving the Node.js application entry point.
> 1. Return the result of **PACKAGE_MAIN_RESOLVE**(_packageURL_,
> _pjson_).
> 1. Otherwise,
> 1. If _pjson_ is not **null* and _pjson.exports_ is *falsy*, then
> 1. Throw a _Module Not Found_ error.
> 1. If _pjson_ is not **null** and _pjson.exports_ is an Object, then
> 1. Return **PACKAGE_EXPORTS_RESOLVE**(_packageURL_, _packagePath_,
> _pjson_).
Expand Down