ronami/minipack

📦 A simplified example of a modern module bundler written in JavaScript

JavaScript

3,302

28 commits

updated Feb 14, 2021

See the code

README

📦 Minipack

A simplified example of a modern module bundler written in JavaScript

Introduction

As front-end developers, we spend a lot of time working with tools like Webpack, Browserify, and Parcel.

Understanding how those tools work can help us make better decisions on how we write our code. By understanding how our code turns into a bundle and how that bundle looks like we can also debug it better.

The purpose of this project is to explain how most bundlers work under the hood. It contains a short implementation of a simplified but still reasonably accurate bundler. Along with the code, there are comments explaining what the code is trying to achieve.

Cool, where do I start?

Head on to the source code: src/minipack.js.

Try running the code

Start by installing dependencies:

$ npm install

And then run our script:

$ node src/minipack.js

Read this in other languages

browserify
commonjs
es2015
es6-modules
example
javascript
module-bundler
modules
parcel-bundler
webpack

ronami/minipack

📦 A simplified example of a modern module bundler written in JavaScript

JavaScript

3,302

28 commits

updated Feb 14, 2021

See the code

README

📦 Minipack

A simplified example of a modern module bundler written in JavaScript

Introduction

As front-end developers, we spend a lot of time working with tools like Webpack, Browserify, and Parcel.

Understanding how those tools work can help us make better decisions on how we write our code. By understanding how our code turns into a bundle and how that bundle looks like we can also debug it better.

The purpose of this project is to explain how most bundlers work under the hood. It contains a short implementation of a simplified but still reasonably accurate bundler. Along with the code, there are comments explaining what the code is trying to achieve.

Cool, where do I start?

Head on to the source code: src/minipack.js.

Try running the code

Start by installing dependencies:

$ npm install

And then run our script:

$ node src/minipack.js

Read this in other languages

browserify
commonjs
es2015
es6-modules
example
javascript
module-bundler
modules
parcel-bundler
webpack

Significant stargazers

(top 24 of 33)

Jon Dufresne

334 followers · starred Oct 2022

Jamie Kyle

8,907 followers · starred Jun 2018

Toru Nagashima

1,172 followers · starred May 2018

Jiawen Geng

367 followers · starred Sep 2021