minipack

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

Github stars Tracking Chart

? 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

Main metrics

Overview
Name With Ownerronami/minipack
Primary LanguageJavaScript
Program languageJavaScript (Language Count: 1)
Platform
License:MIT License
所有者活动
Created At2018-02-08 23:02:05
Pushed At2021-02-14 14:51:03
Last Commit At2018-08-11 17:00:33
Release Count0
用户参与
Stargazers Count3.2k
Watchers Count38
Fork Count323
Commits Count28
Has Issues Enabled
Issues Count8
Issue Open Count5
Pull Requests Count6
Pull Requests Open Count6
Pull Requests Close Count2
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private