Enhancing Node.js Core: Introducing Support for Synchronous ESM Graphs
Briefly

The addition of synchronous ECMAScript Modules (ESM) support in Node.js marks a pivotal moment, simplifying transitions for both package authors and users within the ecosystem.
This feature, enabled via the --experimental-require-module flag, allows developers to use require() for synchronous loading of ESM modules, addressing long-standing pain points.
With this update, Node.js users can now require ESM modules synchronously, but must ensure that the ESM module is appropriately marked and does not include asynchronous top-level awaits.
The motivation for this feature arose from community discussions aimed at overcoming previous challenges in implementing synchronous ESM loading, which enhanced developer experience.
Read at The NodeSource Blog - Node.js Tutorials, Guides, and Updates
[
|
]