Skip to content

feat(core): add output.exports option - #1903

Open
MissGwen wants to merge 1 commit into
web-infra-dev:mainfrom
MissGwen:feat-output-exports
Open

MissGwen wants to merge 1 commit into
web-infra-dev:mainfrom
MissGwen:feat-output-exports

Conversation

@MissGwen

@MissGwen MissGwen commented Sep 4, 2026

Copy link
Copy Markdown

Summary

This PR adds an output.exports option to generate the exports field in package.json from build entries.

  • Supports ESM and CJS outputs, including import and require conditions.
  • Supports single and multiple entries.
  • Skips generation in watch mode.

This is the first iteration and only covers exports. If the remaining fields proposed in the issue are still needed, I’d be happy to add main, module, and types in a follow-up PR.

Related links

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

@elecmonkey

Copy link
Copy Markdown
Member

Thank you for your contribution! The team is still discussing and thinking through the implementation approach. We’ll share any updates or continue the discussion here once we make progress!

@MissGwen

MissGwen commented Sep 8, 2026

Copy link
Copy Markdown
Author

Thank you for your contribution! The team is still discussing and thinking through the implementation approach. We’ll share any updates or continue the discussion here once we make progress!

Thanks for the update! Once the approach is settled, I’d be happy to update this PR accordingly and help with the remaining work in #1291 if needed.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants