Skip to content

Manifest documentation is missing the "exports" field #1239

@gunjan-chandnani

Description

@gunjan-chandnani

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 ("./").

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions