|
|
|
|
|
by oefrha
1388 days ago
|
|
It’s actually pretty annoying that some people are now going pure esm and actively removing cjs builds. There are certain libraries that don’t work with esm yet, so if you need one of those suddenly all the esm-only packages can’t be used. |
|
I assume that you're talking about tools rather than libraries. Any simple library can import ESM asynchronously and any ESM packages can import CJS packages even with static imports.
Tools and Node’s strict ERR_REQUIRE_ESM have been the problem with the migration.