News for hackers. Stuff that matters.
Re:ECMAScript 2016+ in Firefox by evilpie on Wednesday February 22, 2017 @08:08AM (#13705147)
Preliminary modules supports can be enabled in Firefox Nightly by changing dom.moduleScripts.enabled to true in about:config. There are still some bugs (https://bugzilla.mozilla.org/show_bug.cgi?id=568953) to fix before we can ship this.
Re:ECMAScript 2016+ in Firefox by mrspeaker on Wednesday February 22, 2017 @09:09AM (#13705557)
What does that flag actually enable? I can't seem to get it to load any modules (even with type="module") - there hasn't been any movement on that bug for a while, and the last comment says "looks like it is only supported for chrome documents"... I know I'm just being impatient, but I'd love to ditch Babel for my own projects and this is my last "must have" ;)
Re:ECMAScript 2016+ in Firefox by bzbarsky on Wednesday February 22, 2017 @09:24AM (#13705671)
It was only supported for chrome documents until 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.