Skip to content

Adopt module-sync? #27

@benmccann

Description

@benmccann

With the release of Node 24 and EOL of Node 18 next month, all LTS versions of Node will support having a module-sync entry point in exports allowing CJS files to load ESM files if they do not use top-level await. I haven't done a full examination of all the packages in this repo, but the couple I've looked at do not use top-level await, which makes this seem like a real possibility. It would be a nice change as it would reduce the size of the package as a CJS build would no longer be needed for CJS consumers and would help support the ecosystem moving to ESM.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions