Skip to content

Commit

Permalink
docs(package-json): document default main behavior
Browse files Browse the repository at this point in the history
PR-URL: #2881
Credit: @klausbayrhammer
Close: #2881
Reviewed-by: @wraithgar
  • Loading branch information
klausbayrhammer authored and ruyadorno committed Mar 18, 2021
1 parent b419bfb commit 8a38afe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/content/configuring-npm/package-json.md
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,8 @@ This should be a module relative to the root of your package folder.
For most modules, it makes the most sense to have a main script and often
not much else.

If `main` is not set it defaults to `index.js` in the packages root folder.

### browser

If your module is meant to be used client-side the browser field should be
Expand Down

0 comments on commit 8a38afe

Please sign in to comment.