Please sign in to comment.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
module: use undefined if no main
If the package.json file does not have a "main" entry, return undefined rather than an empty string. This is to make more consistent behavior. For example, when package.json is a directory, "main" is undefined rather than an empty string. PR-URL: #18593 Reviewed-By: Bradley Farias <firstname.lastname@example.org> Reviewed-By: Michaël Zasso <email@example.com> Reviewed-By: Benjamin Gruenbaum <firstname.lastname@example.org> Reviewed-By: Vladimir de Turckheim <email@example.com> Reviewed-By: Yuta Hiroto <firstname.lastname@example.org> Reviewed-By: Benedikt Meurer <email@example.com> Reviewed-By: Ali Ijaz Sheikh <firstname.lastname@example.org> Reviewed-By: Matteo Collina <email@example.com>
- Loading branch information
Showing with 6 additions and 6 deletions.