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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.