O'Reilly logo

Get Programming with JavaScript Next: New features of ECMAScript 2015, 2016, and beyond by JD Isaacks

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required