minipack

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

Github星跟蹤圖

? 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

主要指標

概覽
名稱與所有者ronami/minipack
主編程語言JavaScript
編程語言JavaScript (語言數: 1)
平台
許可證MIT License
所有者活动
創建於2018-02-08 23:02:05
推送於2021-02-14 14:51:03
最后一次提交2018-08-11 17:00:33
發布數0
用户参与
星數3.2k
關注者數38
派生數323
提交數28
已啟用問題?
問題數8
打開的問題數5
拉請求數6
打開的拉請求數6
關閉的拉請求數2
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?