Not really specific to .mjs, .jsx etc also apply
But it's to distinguish CJS from ESM *in node*. .js *already today* means "script or module" and as you said can't be changed.
-
-
Node never said .js is anything except CJS, which is what all tools output for Node
-
Right. This is about Node. Maybe we want .njs for Node .js.
-
Why? .mjs works on web just fine and can be "Modular JavaScript". Some on TC39 even like a new extension regardless
-
People doing purely web can stay .js or use .mjs
-
"modular JS" is confusing for long-time nodesters. "I thought I was already writing a module"
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.