Prepack
Prepack

17
44
3
Webpack
Webpack

10.4K
6.8K
741
Add tool

Prepack vs Webpack: What are the differences?

What is Prepack? A tool for making JavaScript code run faster (by Facebook). Prepack is a partial evaluator for JavaScript. Prepack rewrites a JavaScript bundle, resulting in JavaScript code that executes more efficiently. For initialization-heavy code, Prepack works best in an environment where JavaScript parsing is effectively cached.

What is Webpack? A bundler for javascript and friends. A bundler for javascript and friends. Packs many modules into a few bundled assets. Code Splitting allows to load parts for the application on demand. Through "loaders" modules can be CommonJs, AMD, ES6 modules, CSS, Images, JSON, Coffeescript, LESS, ... and your custom stuff.

Prepack and Webpack are primarily classified as "Javascript Utilities & Libraries" and "JS Build Tools / JS Task Runners" tools respectively.

Prepack and Webpack are both open source tools. Webpack with 49.8K GitHub stars and 6.27K forks on GitHub appears to be more popular than Prepack with 13.7K GitHub stars and 463 GitHub forks.

What is Prepack?

Prepack is a partial evaluator for JavaScript. Prepack rewrites a JavaScript bundle, resulting in JavaScript code that executes more efficiently. For initialization-heavy code, Prepack works best in an environment where JavaScript parsing is effectively cached.

What is Webpack?

A bundler for javascript and friends. Packs many modules into a few bundled assets. Code Splitting allows to load parts for the application on demand. Through "loaders" modules can be CommonJs, AMD, ES6 modules, CSS, Images, JSON, Coffeescript, LESS, ... and your custom stuff.

Want advice about which of these to choose?Ask the StackShare community!

Why do developers choose Prepack?
Why do developers choose Webpack?

Sign up to add, upvote and see more prosMake informed product decisions

What are the cons of using Prepack?
What are the cons of using Webpack?
    Be the first to leave a con
    What companies use Prepack?
    What companies use Webpack?

    Sign up to get full access to all the companiesMake informed product decisions

    What tools integrate with Prepack?
    What tools integrate with Webpack?

    Sign up to get full access to all the tool integrationsMake informed product decisions

    What are some alternatives to Prepack and Webpack?
    Modernizr
    It’s a collection of superfast tests or detects as we like to call them which run as your web page loads, then you can use the results to tailor the experience to the user. It tells you what HTML, CSS and JavaScript features the user’s browser has to offer.
    Moment.js
    A javascript date library for parsing, validating, manipulating, and formatting dates.
    Lodash
    A JavaScript utility library delivering consistency, modularity, performance, & extras. It provides utility functions for common programming tasks using the functional programming paradigm.
    Underscore
    A JavaScript library that provides a whole mess of useful functional programming helpers without extending any built-in objects.
    MooTools
    It is a collection of JavaScript utilities designed for the intermediate to advanced JavaScript developer. It allows you to write powerful and flexible code with its elegant, well documented, and coherent APIs.
    See all alternatives
    Decisions about Prepack and Webpack
    No stack decisions found
    Interest over time
    Reviews of Prepack and Webpack
    No reviews found
    How developers use Prepack and Webpack
    Avatar of Volkan Özçelik
    Volkan Özçelik uses WebpackWebpack

    Webpack is the best bundler. Period.

    Yes, it has a(n arguably) messy documentation, and a steep learning curve; but once you get the hang of it, there is nothing you cannot do with it.

    Use it and you don’t have to use any other bundler at all.

    It has a vivid ecosystem, and great plugin support.

    Avatar of Alec Cunningham
    Alec Cunningham uses WebpackWebpack

    My preferred build tool; allows me to bundle my JSX, JS, CSS files for easy access and I can pass the bundle through my node server for server side rendering.

    Avatar of Kent Steiner
    Kent Steiner uses WebpackWebpack

    Flexible building and compiling of source for browser consumption, mainly for JS, but experimenting a little with CSS (although I prefer StylusJS for CSS).

    Avatar of Andrew Gatenby
    Andrew Gatenby uses WebpackWebpack

    We use this to optimise the delivery of the client-side for our revised Admin System, so it's able to be delivered to browsers as efficiently as possible.

    Avatar of Cameron Drake
    Cameron Drake uses WebpackWebpack

    Webpack compiles files to bundles with source maps. Using Webpack you can use the latest features (ES6) and have it compiled to compliant js.

    How much does Prepack cost?
    How much does Webpack cost?
    Pricing unavailable
    Pricing unavailable
    News about Prepack
    More news