Or you can use Bun and have it handle all the nonsense. Or esbuild, but then you get a big blob, which isn’t really usable for a lot of things.
The extensions were always silly to me. Who changes only a few files to esmodules? You either change your whole project or not at all.