Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

☂️ Umbrella: full and modern ESM compatability #2334

Open
2 of 10 tasks
axe312ger opened this issue Jun 26, 2024 · 0 comments
Open
2 of 10 tasks

☂️ Umbrella: full and modern ESM compatability #2334

axe312ger opened this issue Jun 26, 2024 · 0 comments
Assignees

Comments

@axe312ger
Copy link
Collaborator

axe312ger commented Jun 26, 2024

🛣️ The road to modern ESM

Working with ESM only dependencies is still hard in 2024. And we want to do our part and make all people of all code styles and environments happy!

👟 Core and CDA are ready(ish)

To make this happen, we have to do kind of a leap forward. We already have the SDK-CORE prepared and the CDA.js is also ready for review

🔨 List of todos

These are based on the learnings from our other repos:


potential breaking changes below here


  • switch to contentful-sdk-core with pure ESM support
  • switch to rollup (better ESM handling, faster, all packages use same bundler now)
  • remove the minified node bundle (no need as it will be loaded only once!)
  • make available in cjs (maybe as a bundle for node without ESM support)
  • make available in pure esm (through a simple tsc compile)
  • support ESM only dependencies (it is time, we are starting to lack behind and create dependency issues with modern setups)
  • compatibility for browser modules and still provide a minified bundle for browser (hopefully used for demos, and not production)

👏 Will fix:

These changes should solve the following issues:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant