Skip to content

Commit 5f0b157

Browse files
TrottMylesBorins
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") Backport-PR-URL: #35757 PR-URL: #35254 Reviewed-By: Jan Krems <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Guy Bedford <[email protected]>
1 parent 41af927 commit 5f0b157

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/api/packages.md

+3-3
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)