diff --git a/docs/content/configuring-npm/package-json.md b/docs/content/configuring-npm/package-json.md index 4b3fd2ba93459..33e8a3a64d35d 100644 --- a/docs/content/configuring-npm/package-json.md +++ b/docs/content/configuring-npm/package-json.md @@ -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