Skip to content

Migration to full ESM #170

@jankapunkt

Description

@jankapunkt

As a maintainer this CJS vs ESM situation is pure horror. While some dependencies are only available as cjs, some packages, especially some of our test dependencies are only available as esm.

Handling both is a nightmare and mostly a hacky workaraound, rather than something called a "developer experience".

Therefore, this package will migrate to full esm with end of 2025 and I will not provide any backwards compat to CJS. Please prepare your projects accordingly.

Edit: for those who depend on this package and wonder how they are affected, here is a gist that should help you answering most of your questions: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions