Skip to content

Commit f84366d

Browse files
authored
doc: enhance clarification about the main field
removed "this" to enhance sentence flow. PR-URL: #62302 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Jacob Smith <jacob@frende.me> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 0998c37 commit f84366d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/packages.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1012,7 +1012,7 @@ added: v0.4.0
10121012
The `"main"` field defines the entry point of a package when imported by name
10131013
via a `node_modules` lookup. Its value is a path.
10141014

1015-
When a package has an [`"exports"`][] field, this will take precedence over the
1015+
The [`"exports"`][] field, if it exists, takes precedence over the
10161016
`"main"` field when importing the package by name.
10171017

10181018
It also defines the script that is used when the [package directory is loaded

0 commit comments

Comments
 (0)