Tag Archives: module bundler

Write you a webpack for great good

Module bundlers have become quite popular in the world of JavaScript. Today, I’d like us to briefly see the concept of it, get into how it really works, and I’ll share the story of making a module bundler myself.

What is a module bundler?

Module systems structure a large-scale code base into units of modules. For long, there has been no module system for JavaScript, but ever since Node.js started to use a module system called CommonJS from 2009, modular programming became a common practice. Also, ES Module, a new module system, has been added to the JavaScript specification in the ECMAScript 2015. It’s hard to imagine coding JavaScript without modules nowadays.