Open KorvinSzanto opened 12 years ago
Only showing votes past nomination
.src 17
.api 2
.app 2
.lib 2
.oss 1
(There was an issue with @ names, GH couldn't handle that many in one spot. For now, only nominators will be @ linked.)
1+ .src
+1 src
.git
Examples:
angular.js.git
boost.cpp.git
django.py.git
Waking the old zombie thread, but ESM imports are now a thing and work in all modern browsers. It is recommended by V8's documentation to use .mjs
file extension for clarity, and .mjs
is preferred by Node, Babel and other runtimes.
So seems like the best option (since .js
isn't viable).
<script type="module" src="https://vue.min.mjs/3.2.11"></script>
// min.mjs CDN could be a host for dynamic imports
import('https://vue.min.mjs/3.2.11')
.then((module) => {
// Do something with the module.
});
May be worth creating a TLD.mjs
repo to separate from the older TLD.js
conversations. Letting newer conversations be had?
.mjs
is pretty useless these days, as TypeScript files convert to .js
and the whole Web works with .js
and NodeJS works with .js
too if the module type is module
, and it works with .js
if the current or parent folder has a package.json
with {"type":"module"}
in it, plus gjs works fine with .js
too, and everything .js
these days work as module in every tool too.
It's rather time to let .mjs
go, imho.
Of course .js is the absolute winner, but if that is not available, there are several others that are being voted on in other threads.
Please vote in the comments, as checking other threads is taxing. If I have missed your vote, or misrepresented your vote, please comment and I will remove. If you would like to make an anonymous vote, please private message me.
Nominated: