Skip to content

[Enhancement] switch packaging from CommonJS to ESM #399

Description

Downstream consumers are asking us to switch the packaging to ESM.

Notes from initial investigation:

  • switching to ESM can break consumers that use require()
  • many tools/frameworks (like JEST) assume CommonJS and may require additional flags/code changes to support ESM
  • it's possible to "dual package" both ESM and CommonJS

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions