website
website copied to clipboard
Manifest documentation is missing the "exports" field
The Manifest documentation mentions that "module" is deprecated in favor of "exports", but there is currently no section explaining "exports". This field is the recommended modern way for packages to declare their public entry points and subpaths.
Proposed fix:
- Add a section for
"exports"in the manifest documentation page. - Include examples for single entry point, multiple conditions (
import/require), and subpath exports. - Note precedence rules (
exportsoverridesmain). - Mention that paths must be relative (
"./").
Is this on the legacy Yarn site or the current Yarn site?