From f84366d33943fee94756655df17f4d38dc8519da Mon Sep 17 00:00:00 2001 From: Mowafak Almahaini <97206982+SuperMo0@users.noreply.github.com> Date: Fri, 20 Mar 2026 01:33:44 +0200 Subject: [PATCH] doc: enhance clarification about the main field removed "this" to enhance sentence flow. PR-URL: https://github.com/nodejs/node/pull/62302 Reviewed-By: Antoine du Hamel Reviewed-By: Jacob Smith Reviewed-By: Luigi Pinca --- doc/api/packages.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/packages.md b/doc/api/packages.md index d98fe357538..d00eaeaf9df 100644 --- a/doc/api/packages.md +++ b/doc/api/packages.md @@ -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, takes precedence over the `"main"` field when importing the package by name. It also defines the script that is used when the [package directory is loaded