#9 application/javascript for "mjs" file extension
Closed: Fixed 10 months ago by tkorbar. Opened 3 years ago by cookiengineer.

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.

So, my feature request here is to add the mjs file type as application/javascript here, because it is missing.

[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)

10 months ago

Login to comment on this ticket.

Metadata