Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e254f65

Browse filesBrowse 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
Copy full SHA for e254f65

1 file changed

+1-1Lines changed: 1 addition & 1 deletion

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api/packages.md‎

Copy file name to clipboardExpand all lines: doc/api/packages.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.