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
fixup! module: implement "exports" proposal for CommonJS
  • Loading branch information
hybrist committed Jul 23, 2019
commit 3316fea299ec21778afdab79ab73bf3a6ec83d80
4 changes: 4 additions & 0 deletions doc/api/modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,10 @@ RESOLVE_BARE_SPECIFIER(DIR, X)
3. return DIR/X
```

`"exports"` is only honored when loading a package "name" as defined above. Any
`"exports"` values within nested directories and packages must be declared by
the `package.json` responsible for the "name".

## Caching

<!--type=misc-->
Expand Down