Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add better entry point description (#1177)
The current docs say > is used to define the entry point of your code used by programs like Node.js. If unspecified it will default to index.js. Since Node is not a program, is an execution environment, the description given proposes to change, to avoid misconceptions about how javascript and javascript packages really work. I think is convenient to try to unify definitions and criteria. Also, today NodeJS purpose the "exports" entry point usage instead of "main" entry, and this entry point (exports) has better support for universal packages.
- Loading branch information