wordpress-playground icon indicating copy to clipboard operation
wordpress-playground copied to clipboard

Drop CommonJS Support

Open adamziel opened this issue 7 months ago • 2 comments

Publishing packages as both ESM and CommonJS requires more maintenance than releasing just ESM. Missing the right CommonJS or ESM publishing setup even for a single package in this monorepo may cause issues in the entire dependency graph.

At best, this means obvious crashes, and at worst it means confusing error messages pointing in a completely different direction:

  • https://github.com/WordPress/wordpress-playground/issues/1577
  • https://github.com/WordPress/wordpress-playground/issues/1579

Let's explore what would be the implications of dropping CommonJS support completely and only publishing ESM modules.

adamziel avatar Jul 08 '24 11:07 adamziel