Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

Consider using ESM-style modules #19

Open
TimDaub opened this issue Oct 19, 2021 · 0 comments
Open

Consider using ESM-style modules #19

TimDaub opened this issue Oct 19, 2021 · 0 comments

Comments

@TimDaub
Copy link
Collaborator

TimDaub commented Oct 19, 2021

Is it safe already?

  • I'm the maintainer of a few ESM-style packages, e.g. https://github.com/rugpullindex/eth-fun
  • There are occasional hickups and some standard things e.g. __dirname have to be worked around. Generally though ESM works already really well and has some nice benefits and tooling already as well e.g. esmock or quibble.

What are others saying?

  • if it's any indication, https://github.com/sindresorhus has also started converting all packages to ESM-style and so I'd guess the nodejs ecosystem will move there over the long term.

Why do it now and not later?

The smaller the code base, the less opinionated module usage. I think for now the task is rather simple. It can become more complex over time (technical debt).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant