A simplified example of a modern module bundler written in JavaScript
Most of us don't have to think too much about module bundlers in our day jobs. However, module bundlers are all around us, and if you're a web developer you are probably using module bundlers on a daily basis.
Having a good understanding of how popular tools like Webpack or Browserify work is extremely helpful.
The purpose of this example is to help you understand how most module bundlers work, and that they're not as scary as you might think.
Start by installing dependencies:
$ npm install
And then run our script:
$ node run.js
Head on to the source code: src/minipack.js.