This content originally appeared on 2ality – JavaScript and more and was authored by Dr. Axel Rauschmayer
(This blog post is based on a tweet thread and additional input by Mathias Bynens.)
After work started on it in August 2017, May 2022 finally saw the publication of RFC 9239 “Updates to ECMAScript media types” by Matthew A. Miller, Myles Borins, Mathias Bynens, and Bradley Farias. It updates JavaScript MIME type registrations to align with reality:
- The JavaScript MIME type is now unambiguously
text/javascript
. .mjs
is now a registered filename extension, specifically for JavaScript modules.
This unblocks tooling and server software like Apache to support JavaScript modules out of the box in a unified manner, like e.g. Node.js already does. Better industry alignment on MIME type and file extensions increases interoperability across tooling and other software.
This content originally appeared on 2ality – JavaScript and more and was authored by Dr. Axel Rauschmayer
Dr. Axel Rauschmayer | Sciencx (2022-05-18T00:00:00+00:00) RFC 9239: Updates to ECMAScript media types. Retrieved from https://www.scien.cx/2022/05/18/rfc-9239-updates-to-ecmascript-media-types/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.