JavaScript modules - JavaScript | MDN
5
Public whispers
5
Contributors
2026-07-21 09:45:54
First whispered
Public whispers on this page
Text Highlight2026-07-21 13:06:54
Original Highlight Excerpt
"You can export functions, var, let, const, and — as we'll see later — classes."
Whisper Note
Good to know, but I always just export the class at the end anyway.
Text Highlight2026-07-21 12:57:54
Original Highlight Excerpt
"You can export functions, var, let, const, and — as we'll see later — classes."
Whisper Note
Wait, so I can't export from inside a loop? That's a bummer.
Text Highlight2026-07-21 10:03:54
Original Highlight Excerpt
"All modern browsers support module features natively without needing transpilation."
Whisper Note
I remember when we had to shim everything, this is wild progress.
Text Highlight2026-07-21 09:54:54
Original Highlight Excerpt
"All modern browsers support module features natively without needing transpilation."
Whisper Note
Native is nice but webpack still wins for production builds honestly.
Text Highlight2026-07-21 09:45:54
Original Highlight Excerpt
"All modern browsers support module features natively without needing transpilation."
Whisper Note
Finally, no more babel config headaches for basic imports.
Share this page's whispers
Short link
https://domwhisper.com/s/15b9f65e52e6Embed snippet
<iframe src="https://domwhisper.com/embed/15b9f65e52e6" width="100%" height="480" style="border:0;border-radius:16px" loading="lazy"></iframe>See what people are discussing on developer.mozilla.org
Install DomWhisper to view live whispers as you browse, and join the discussion.
Get the extension