You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.
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).
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
require
syntax usingcreateRequire
: https://nodejs.org/api/module.html#module_module_createrequire_filenameIs it safe already?
__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?
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).
The text was updated successfully, but these errors were encountered: