Skip to content

Commit 55d15e6

Browse files
Trottaduh95
authored andcommitted
doc: edit subpath export patterns introduction
* Use parallel construction in the two sentences * Backticks around _package.json_ to match rest of file * Add comma for readability * Own the recommendation ("we recommend") PR-URL: nodejs#35254 Reviewed-By: Jan Krems <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Guy Bedford <[email protected]>
1 parent 7b76e75 commit 55d15e6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/api/packages.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,9 +258,9 @@ import submodule from 'es-module-package/private-module.js';
258258

259259
> Stability: 1 - Experimental
260260
261-
Explicitly listing each exports subpath entry is recommended for packages with
262-
a small number of exports. But for packages that have very large numbers of
263-
subpaths this can start to cause package.json bloat and maintenance issues.
261+
For packages with a small number of exports, we recommend explicitly listing
262+
each exports subpath entry. But for packages that have large numbers of
263+
subpaths, this might cause `package.json` bloat and maintenance issues.
264264

265265
For these use cases, subpath export patterns can be used instead:
266266

0 commit comments

Comments
 (0)