Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
doc: enhance clarification about the main field
removed "this" to enhance sentence flow.
  • Loading branch information
SuperMo0 authored Mar 17, 2026
commit 6c5b9a64456333545fb27f4fa9ecf692209291e0
2 changes: 1 addition & 1 deletion doc/api/packages.md
Original file line number Diff line number Diff line change
Expand Up @@ -1012,7 +1012,7 @@ added: v0.4.0
The `"main"` field defines the entry point of a package when imported by name
via a `node_modules` lookup. Its value is a path.

When a package has an [`"exports"`][] field, this will take precedence over the
the [`"exports"`][] field, if it exists, will take precedence over the
Comment thread
SuperMo0 marked this conversation as resolved.
Outdated
`"main"` field when importing the package by name.

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