Lesson 3. Bundling modules with Browserify

Modules are a big part of the additions to JavaScript. As you’ll learn in this lesson, transpiling alone is not enough for modules. This is because the most defining aspect of modules is that they break your code into seperate files. This means that you’ll need to bundle them into one file. There are several popular tools for bundling JavaScript modules; two popular up-and-coming options are Webpack and Rollup. In this lesson you’ll use one of the first ones that hit the scene, Browserify.

3.1. What’s a module?

Many programming languages support modularized code. Ruby calls these pieces of modularized code gems, Python calls them eggs, and Java calls them packages. JavaScript never had official support ...

Get Get Programming with JavaScript Next now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.