by sintaxi · 3y ago · 0 comments
The only solution to this problem is to upgrade require work for importing ESM. Once that is implemented ESM will become the natural choice for those publishing libraries. Until that happens library authors are going to continue to use CJS so their libraries are available to everyone.
Node 10 was truly the last LTS that had zero ESM support, and that support ended 2 and a half years ago.