JavaScript modules - JavaScript | MDN
5
公开标注数
5
参与人数
2026-07-21 09:45:54
首次 Whisper
本页的公开 Whisper
划选高亮2026-07-21 13:06:54
原文高亮摘录
“You can export functions, var, let, const, and — as we'll see later — classes.”
Whisper 随想笔记
Good to know, but I always just export the class at the end anyway.
划选高亮2026-07-21 12:57:54
原文高亮摘录
“You can export functions, var, let, const, and — as we'll see later — classes.”
Whisper 随想笔记
Wait, so I can't export from inside a loop? That's a bummer.
划选高亮2026-07-21 10:03:54
原文高亮摘录
“All modern browsers support module features natively without needing transpilation.”
Whisper 随想笔记
I remember when we had to shim everything, this is wild progress.
划选高亮2026-07-21 09:54:54
原文高亮摘录
“All modern browsers support module features natively without needing transpilation.”
Whisper 随想笔记
Native is nice but webpack still wins for production builds honestly.
划选高亮2026-07-21 09:45:54
原文高亮摘录
“All modern browsers support module features natively without needing transpilation.”
Whisper 随想笔记
Finally, no more babel config headaches for basic imports.
分享本页 Whisper
短链接
https://domwhisper.com/s/15b9f65e52e6嵌入代码
<iframe src="https://domwhisper.com/embed/15b9f65e52e6" width="100%" height="480" style="border:0;border-radius:16px" loading="lazy"></iframe>