git404hub

what is prepack fr?

gaearon/prepack — explained in plain English

Analysis updated 2026-07-17 · repo last pushed 2018-08-31

7JavaScriptAudience · developerComplexity · 4/5DormantSetup · moderate

tl;dr

Prepack pre-computes parts of your JavaScript ahead of time so it has less setup work to do at runtime.

vibe map

mindmap
  root((prepack))
    What it does
      Precomputes JS
      Rewrites code
      Bakes in results
    Tech stack
      JavaScript
      Webpack
      Rollup
    Use cases
      Speed up startup
      Reduce init logic
      Build pipeline tool
    Audience
      Web developers
      App teams

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

what do people make with this?

VIBE 1

Reduce startup time for a JavaScript bundle with heavy initialization logic.

VIBE 2

Plug Prepack into a Webpack or Rollup build pipeline to pre-optimize code.

VIBE 3

Try Prepack's interactive playground to see how it transforms sample code.

what's the stack?

JavaScriptWebpackRollup

how it stacks up fr

gaearon/prepackboneskull/promwrapbrunosimon/ecole-multimedia-fi-dev2-2019
Stars777
LanguageJavaScriptJavaScriptJavaScript
Last pushed2018-08-312020-07-212021-08-12
MaintenanceDormantDormantDormant
Setup difficultymoderateeasyhard
Complexity4/52/52/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

how do i run it?

Difficulty · moderate time til it works · 30min

Integrates with existing bundlers, but conformance with all JS features is still a work in progress.

prompts (copy fr)

prompt 1
Show me how to add Prepack to my Webpack build pipeline to speed up startup.
prompt 2
Help me identify which parts of my JavaScript initialization code Prepack could precompute.
prompt 3
Explain what kinds of JavaScript features Prepack might not fully support yet.

Frequently asked questions

what is prepack fr?

Prepack pre-computes parts of your JavaScript ahead of time so it has less setup work to do at runtime.

What language is prepack written in?

Mainly JavaScript. The stack also includes JavaScript, Webpack, Rollup.

Is prepack actively maintained?

Dormant — no commits in 2+ years (last push 2018-08-31).

How hard is prepack to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is prepack for?

Mainly developer.

peek the repo → explain another one

This repo across BitVibe Labs

double-check against the repo, no cap.