Chapter 2. JavaScript Tooling
One of the greatest strengths of the web is that its core technologies—HTML, CSS, and JavaScript—are both the tools you write and the tools the browser runs. The file you author is the same file the user’s browser executes. There’s no complicated build step or translation layer by default: what you write is what you run. And if you have been around for a while, you’ve heard the stories of “F5 development,” where the only tool you needed was the Reload button to show whether your change was already visible. This immediate connection between writing and execution not only makes web development accessible but also encourages experimentation, creativity, and rapid iteration.
Nowadays, tools not only automatically reload the browser for us when there has been a file change, but they also do a lot of work until the file actually runs in the browser. JavaScript dialects, supersets, and transpilers have become the norm. Writing code today often means interacting with layers of tooling that transform, optimize, and sometimes even reinterpret your original files before they are finally delivered to the browser.
In this chapter, we look at JavaScript tooling: how we got here, what problems these tools solve—and sometimes create—and how to navigate the ecosystem with a focus on reliability, simplicity, and performance. We’ll look at npm and dependency management, highlight the challenges of a growing web of dependencies, dive into security and build stability ...
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