NodeJS Official
ES module autodetection coming to Node
#508 — October 31, 2023 Read on the Web Node v21.1 (Current) Released with ESM Detection Feature — “The new flag 1–experimental-detect-module can be used to automatically run ES modules when their syntax can be detected. … We hope to make detection enabled by default in a future version.” Michaël Zasso Read more…