As the WHATWG's html specification [1] [2] now supports <script type="module"> and it was mutually agreed upon by other javascript execution runtimes like node.js, graalvm and others, the file extension mjs is the actual correct file extension for ECMAscript modules.
<script type="module">
mjs
So, my feature request here is to add the mjs file type as application/javascript here, because it is missing.
application/javascript
[1] https://html.spec.whatwg.org/multipage/scripting.html#attr-script-type [2] https://html.spec.whatwg.org/multipage/webappapis.html#module-script
I added the relevant Pull Request with those changes here
Hi, thanks for pointing this out. I even noticed that there is an error and application/javascript was obsoleted by text/javascript. Will fix this in future release.
Metadata Update from @tkorbar: - Issue close_status updated to: Fixed - Issue status updated to: Closed (was: Open)
Login to comment on this ticket.