Summary
In this chapter, we have learned about a ton of new things.
First and most importantly, we considered modules, which are crucial in today's JavaScript/TypeScript ecosystem. Using modules, we were able to dramatically improve the organization of our code. Thanks to them, each and every piece of our application is now cleanly isolated and can clearly define what it needs to import (that is, its dependencies) and what it exposes to the outside world using exports (that is, its public API).
We first saw where modules come from, and how they've evolved over time to finally become part of the ECMAScript specification. This led us to discuss the Revealing Module pattern, AMD, CommonJS, System, and UMD. After that, we discovered how to use ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access