Skip to content

Commit 8a38afe

Browse files
klausbayrhammerruyadorno
authored andcommitted
docs(package-json): document default main behavior
PR-URL: #2881 Credit: @klausbayrhammer Close: #2881 Reviewed-by: @wraithgar
1 parent b419bfb commit 8a38afe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/content/configuring-npm/package-json.md

+2
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,8 @@ This should be a module relative to the root of your package folder.
325325
For most modules, it makes the most sense to have a main script and often
326326
not much else.
327327

328+
If `main` is not set it defaults to `index.js` in the packages root folder.
329+
328330
### browser
329331

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

0 commit comments

Comments
 (0)