FYI Chrome 69 eventually started supporting .mjs for Web extensions, every previous version of Chrome will fail even if native ESM is there. Just a little reminder that .mjs has never been needed on the Web, but it already caused troubles to devs using it https://bugs.chromium.org/p/chromium/issues/detail?id=857076 …
To enable universal JavaScript, where the exact same files run on both Node.js and the browser. To give developers the choice. Maybe the JavaScript ecosystem is bigger than just the web nowadays? idk
-
-
It's universal just for .mjs now (chrome), .js is still not universal. Am I right? Does that mean that also other browsers will eventually support .mjs?
-
Browsers don’t have to “support mjs”. They already do, modulo minor updates to things like file:// URLs and extensions.
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.