Skip to content

Commit e254f65

Browse files
SuperMo0aduh95
authored andcommitted
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 9e724b5 commit e254f65

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
@@ -1010,7 +1010,7 @@ added: v0.4.0
10101010
The `"main"` field defines the entry point of a package when imported by name
10111011
via a `node_modules` lookup. Its value is a path.
10121012

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

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

0 commit comments

Comments
 (0)