MCPcopy
hub / github.com/ronami/minipack

github.com/ronami/minipack @main sqlite

repository ↗ · DeepWiki ↗
3 symbols 6 edges 4 files 0 documented · 0%
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

Additional links

Read this in other languages

Core symbols most depended-on inside this repo

createAsset
called by 2
src/minipack.js
createGraph
called by 1
src/minipack.js
bundle
called by 1
src/minipack.js

Shape

Function 3

Languages

TypeScript100%

Modules by API surface

src/minipack.js3 symbols

Dependencies from manifests, versioned

babel-core6.26.0 · 1×
babel-preset-env1.6.1 · 1×
babel-preset-es20156.24.1 · 1×
babel-traverse6.26.0 · 1×
babylon6.18.0 · 1×
eslint4.17.0 · 1×
eslint-config-airbnb-base12.1.0 · 1×
prettier1.10.2 · 1×

For agents

$ claude mcp add minipack \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact