require(esm) was just enabled by default in the latest Node v20!Node v18 LTS support ends on April 30th, and as of that date you'll officially be able to use ESM & CommonJS together easily in all supported versions ♥️#nodejs #esm
Release 2025-03-13, Version 20.19.0 'Iron' (LTS), @marco-ippolito · nodejs/nodeNotable Changes require(esm) is now enabled by default Support for loading native ES modules using require() had been available on v20.x under the command line flag --experimental-require-module, a...