Welcome! Log In Create A New Profile

Advanced

Re: Fwd: Proposal: Add .mjs file extension to known to be JS

Bradley Farias
July 13, 2021 01:50PM
The proposal instructions on the nginx website state that it is for
bug fixes and so it seems that would be the wrong place to put a proposal.
I can do so and cross reference.

To be clear; whatwg is using it in their specifications without any Node
usage implied; if files are produced with that file extension by copy and
pasting the specification examples (such as those in HTML Standard
(whatwg.org)
<https://html.spec.whatwg.org/multipage/webappapis.html#integration-with-the-javascript-module-system>),
they would fail on nginx. There is also an IETF MIME update that should
finally be published soon: draft-ietf-dispatch-javascript-mjs-09 -
ECMAScript Media Types Updates
https://datatracker.ietf.org/doc/draft-ietf-dispatch-javascript-mjs/ . If
the goal is not to be compatible, but only to apply to file extensions
after they are popular, that seems a bit odd to me at least since it means
knowing that upcoming things are potentially incompatible and willfully not
preparing until after the problems occur.

On Tue, Jul 13, 2021 at 12:36 PM Maxim Dounin <mdounin@mdounin.ru> wrote:

> Hello!
>
> On Mon, Jul 12, 2021 at 09:24:49AM -0500, Bradley Farias wrote:
>
> > See Add .mjs file extension to known JS mime types by bmeck · Pull
> Request
> > #71 · nginx/nginx (github.com) https://github.com/nginx/nginx/pull/71
> and
> > the related Use .mjs for modules more consistently by mathiasbynens ·
> Pull
> > Request #3810 · whatwg/html (github.com)
> > https://github.com/whatwg/html/pull/3810
>
> Interestingly enough, the pull request in whatwg you are referencing
> claims that "on the web file extensions doesn't matter", yet your
> suggested change means exactly the opposite.
>
> For a mime.types change you think is needed, consider opening a
> ticket on trac.nginx.org. If/when there is a consensus that the
> change is needed, the change will be committed. For now the mjs
> extension does not seem to be widely used except by Node.js.
>
> --
> Maxim Dounin
> http://mdounin.ru/
> _______________________________________________
> nginx-devel mailing list
> nginx-devel@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx-devel
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Fwd: Proposal: Add .mjs file extension to known to be JS

Bradley Farias 370 July 12, 2021 10:26AM

Re: Fwd: Proposal: Add .mjs file extension to known to be JS

Maxim Dounin 163 July 13, 2021 01:38PM

Re: Fwd: Proposal: Add .mjs file extension to known to be JS

Bradley Farias 141 July 13, 2021 01:50PM

Re: Fwd: Proposal: Add .mjs file extension to known to be JS

Maxim Dounin 175 July 13, 2021 04:36PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 223
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready