top | item 18762671

(no title)

through | 7 years ago

The Michael Jackson Script is an absolute joke and had arisen solely from NodeJS attempting to solve its own require legacy. It’s not the business of any other party to do such a ridiculous thing.

.mjs is an aberration, a solution to a poor implementation of one web server, not a solution. NodeJS need to do the hard work of solving their own problem and stop attempting to manufacture “real world solutions” with .mjs.

discuss

order

snek|7 years ago

If you feel you can come up with a better solution for module syntax ambiguity please feel free.

Over the last three years we (including hundreds of devs like you who come in guns blazing calling us all idiots) haven't been able to come up with something that works better.

ricardobeat|7 years ago

That is a self-inflicted problem. Step away from the ambiguity by dropping cross-compatibility as everyone has been begging for.

through|7 years ago

Proposing or fixing a bug in a third party product should not affect a web standard. If you want my personal help to assist the NodeJS fix, yeah, I would be good there, but I can’t fix the toxic bikeshed culture that you obviously enjoy. MJS is NodeJS solution. It is not a web solution.

jdd|7 years ago

Node will likely end up with multiple ways to disambiguate modules. Until then, you might dig https://npmjs.com/esm. No .mjs required.