The reason to avoid .mjs is the same reason node itself chose .js initially despite CJS modules != script.
-
-
Explain
1 reply 0 retweets 0 likes -
.js is widespread and well understood. Hell it's part of Node.js!
1 reply 0 retweets 1 like -
It isnt well understood, we have been over the fact that it might be Script CJS or ESM. Heck lets throw JScript in there, AMD, or DOJO, ...
1 reply 0 retweets 0 likes -
It's well understood to mean "some kind of JS, look elsewhere for the precise meaning"
2 replies 0 retweets 0 likes -
Exactly, it is imprecise so not well understood
1 reply 0 retweets 0 likes -
It means "JavaScript content". That's most important for tools like syntax highlighters or simple code search tools.
1 reply 0 retweets 1 like -
Replying to @wycats @bradleymeck and
These tools exist in many many places. We can fix popular ones but there's a long tail.
2 replies 0 retweets 0 likes -
Replying to @wycats @bradleymeck and
How many times have you had some code syntax highlighted on some website w/o knowing which tool was doing it.
2 replies 0 retweets 0 likes -
How many times has that code formatted cares about my file extension? Let's be honest, it may not matter
2 replies 0 retweets 0 likes
It's quite common. Gist, editors.
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.