In Node 24, what primarily determines whether app.js is ESM or CommonJS?

from Modules
Node 24 beginner 2 min

In Node 24, what primarily determines whether app.js is ESM or CommonJS?

Report an error