.wasm , another file extension people might want to ponder
-
-
Apps using TS, Babel etc have been using .js for modules not for years. So far no major push in those ecosystems to change.
-
Correct but they remain non compliant with the standard in ways that cant be supported
-
My point is that the only motivation for .mjs is to distinguish from CJS in Node. Good for people to understand that.
-
Or for OS, or for devs, or people wanting to ship poly packages... we have talked about this before.
-
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
- 2 more replies
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.