website icon indicating copy to clipboard operation
website copied to clipboard

Manifest documentation is missing the "exports" field

Open gunjan-chandnani opened this issue 4 months ago • 1 comments

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 (exports overrides main).
  • Mention that paths must be relative ("./").

gunjan-chandnani avatar Aug 13 '25 06:08 gunjan-chandnani

Is this on the legacy Yarn site or the current Yarn site?

Daniel15 avatar Aug 13 '25 17:08 Daniel15