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