Created attachment 133216 [details] [review]
Used by Node:
Already being merged into other tools:
(In reply to Bradley Farias from comment #0)
Bastien: As shown in the TC39 issue, they will not be using a new MIME type. This can also be seen in the currently being deployed specification for web browsers. See step 7 of https://html.spec.whatwg.org/multipage/webappapis.html#fetch-a-single-module-script . Using a new MIME type would introduce incompatibility from `.mjs` and `.js` when served via a HTTP server using MIME detection.
Linking to what action was actually taken would certainly have helped. I'm not that super interested in what ECMA does to follow the links :/
Can you please update the patch to include direct links to the actual result of the discussion? The issue you pointed to is simply marked as closed, and without any labels that could make me think that it was rejected.
Comment on attachment 133216 [details] [review]
From b234ef886b50d36b3ced839f2a30d7d36e628949 Mon Sep 17 00:00:00 2001
From: Bradley Farias <firstname.lastname@example.org>
Date: Wed, 2 Aug 2017 17:09:48 -0500
As used in Node.js related projects.
Web browsers will not be using any new MIME as seen in the MIME check of:
This means `.mjs` should be served with the same MIME to have files work in
both Node.js and the web.
freedesktop.org.xml.in | 1 +
tests/esm.mjs | 2 ++
tests/list | 1 +
3 files changed, 4 insertions(+)
create mode 100644 tests/esm.mjs
diff --git a/freedesktop.org.xml.in b/freedesktop.org.xml.in
index 645c538..901b686 100644
@@ -2424,6 +2424,7 @@ command to generate the output files.
+ <glob pattern="*.mjs"/>
diff --git a/tests/esm.mjs b/tests/esm.mjs
new file mode 100644
@@ -0,0 +1,2 @@
diff --git a/tests/list b/tests/list
index 9aa40c4..313bb37 100644
@@ -236,6 +236,7 @@ helloworld.java text/x-java ox
# Copied from gecko/accessible/src/jsat/Utils.jsm in Boot2Gecko
# The following two copied from RFC 4627.
json_object.json application/json ox
Edit as comment appears to make just a comment without editing?
Created attachment 133291 [details] [review]
add link to HTML spec requirements of JS MIME
Pushed to master, thanks!