4 ms·
It was only supported for chrome documents until https://bugzilla.mozilla.org/show_bug.cgi?id=1330657 https://bugzilla.mozilla.org/show_bug.cgi?id=1330657 lande
by bzbarsky 10y ago
It was only supported for chrome documents until https://bugzilla.mozilla.org/show_bug.cgi?id=1330657 https://bugzilla.mozilla.org/show_bug.cgi?id=1330657 landed in Firefox Nightly two weeks ago. So if you have a current nightly and set the "dom.moduleScripts.enabled" preference to true in about:config, <script type="module"> should work.