JavaScript bundlers (2026)

By Xah Lee. Date: .

what is a bundler

bundler is tool that takes a js file, find all the “requires” packages declared in it, and bundle them all the code into a single js file.

js did not have modules system before ECMAScript 2015 . People created CommonJS Module System , and is used in nodejs.

it loads library by code like const math = require('./math.js'); but this isn't supported by browsers. Thus, use bundler to merge all the js files into one.

browserify. 2017

browserify.org 2026-06-26 320e5 ll
browserify.org 2026-06-26 320e5 ll

webpack

webpack.js.org 2026-06-26 320fb ll
webpack.js.org 2026-06-26 320fb ll

modern web dev history. 2010 to 2026