Try it out today! Export any kind of value (a const? a function? you name it!) and import it from another module. It feels so good.
-
-
Show this threadThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
If only Node didn't ask for `.mjs`

-
As a developer, you need to know which scripts are modules and which are regular scripts, because they behave differently. It makes sense to encode that distinction in the file extension somehow, IMHO.
- 18 more replies
New conversation -
-
-
Why rel=modulepreoload and not rel=preload as=module or as=script ?
-
Our article on rel=modulepreload explains it:https://developers.google.com/web/updates/2017/12/modulepreload …
- 1 more reply
New conversation -
-
-
Do old browsers skip main.mjs script because of type="module"? If so, does it mean that we can break things in new es standards without fear of breaking old websites?
-
Exactly! Modern browsers get the `type=module` payload. Other browsers get the `nomodule` payload.
End of conversation
New conversation -
-
-
Side question: what typeface is this?
-
Roboto Mono
End of conversation
New conversation -
-
-
.mjs is more than that:https://twitter.com/mathias/status/996134665621663745 …
End of conversation
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.
