3 ms·
The problem is that for many use cases, ESM is not feature complete. There are important features that are under experimental flags or broken in node.js. node.j
by Chyzwar 3y ago
The problem is that for many use cases, ESM is not feature complete. There are important features that are under experimental flags or broken in node.js. node.js released broken, backwards incompatible version of ESM with new resolution algorithm and is waiting for everyone to figure out workarounds for theirs shitty implementation.
[jest ESM support] https://github.com/jestjs/jest/issues/9430
[typescript extensions] https://github.com/microsoft/TypeScript/issues/16577
[typescript exports] https://github.com/microsoft/TypeScript/issues/33079
[node.js issues] https://github.com/nodejs/node/issues?q=is%3Aissue+is%3Aopen+sort%3Acomments-desc+label%3Aesm
Only in the from few months ago, tooling support is close enough to make it usable.