Skip to content

Add ESM build output for better tree-shaking support#568

Closed
franco-zalamena-iterable wants to merge 1 commit intoIterable:mainfrom
franco-zalamena-iterable:feat/442-esm-build-output
Closed

Add ESM build output for better tree-shaking support#568
franco-zalamena-iterable wants to merge 1 commit intoIterable:mainfrom
franco-zalamena-iterable:feat/442-esm-build-output

Conversation

@franco-zalamena-iterable
Copy link
Copy Markdown

@franco-zalamena-iterable franco-zalamena-iterable commented Apr 7, 2026

Summary

  • Add ESM build output alongside existing AMD/CJS build via a new tsconfig.esm.json
  • Add module field and conditional exports in package.json
  • Enables tree-shaking for consumers using modern bundlers

Test plan

  • ESM build compiles successfully
  • Existing CJS/AMD build still works
  • Package exports resolve correctly

🤖 Generated with Claude Code

Add a dedicated tsconfig.esm.json that compiles TypeScript sources to
ES modules in dist/esm/, and update package.json with module field and
conditional exports so modern bundlers can leverage tree-shaking.

Fixes Iterable#442

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@franco-zalamena-iterable franco-zalamena-iterable deleted the feat/442-esm-build-output branch April 8, 2026 14:47
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.

1 participant