wordpress-playground
wordpress-playground copied to clipboard
Drop CommonJS Support
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.