Skip to content

☂️ Umbrella: full and modern ESM compatability #2334

Open
@axe312ger

Description

@axe312ger

🛣️ 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) released!

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
PR with breaking changes: #2472


  • 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:

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions