Twitter | Pretraživanje | |
Jan @ Home
All differences between JavaScript modules, classic scripts, and CommonJS. For the next time somebody asks me "why have different file extensions?".
JavaScript: Classic Scripts vs. Modules vs. CommonJS - index.md
GitHub GitHub @github
Reply Retweet Označi sa "sviđa mi se" More
Mathias Bynens 28. pro
Odgovor korisniku/ci @jankrems
Nit: JavaScript’s HTML comments syntax creates single-line comments, not block comments. (You might be thinking of HTML comments in HTML.)
Reply Retweet Označi sa "sviđa mi se"
Jan @ Home 29. pro
Odgovor korisniku/ci @mathias
That’s what I get for not just saying “comments”. Never realized, thanks!
Reply Retweet Označi sa "sviđa mi se"
Matteo Collina 30. pro
Odgovor korisniku/ci @jankrems @robpalmer2
I think it's important to mention that commonjs predates modules and all things webpack/babel/rollup/* are based on commonjs as it is the majority of npm.
Reply Retweet Označi sa "sviđa mi se"
Jan @ Home 30. pro
Odgovor korisniku/ci @matteocollina @robpalmer2
Good point! The order is a bit arbitrary right now. I was tempted to also throw in history stuff, including UMD/AMD/etc but it ended up more verbose than useful. :(
Reply Retweet Označi sa "sviđa mi se"