Need advice about which tool to choose?Ask the StackShare community!

Closure Compiler

193
61
+ 1
5
Prepack

32
75
+ 1
3
Add tool
Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of Closure Compiler
Pros of Prepack
  • 1
    The best performing output
  • 1
    Small output size
  • 1
    Dead code elimination
  • 1
    ES6 support
  • 1
    Bundle support for CommonJS, ES6, .
  • 0
    Ease
  • 1
    Available as NPM
  • 1
    Gulp package available
  • 1
    Easy setup but has a very limited range of use cases

Sign up to add or upvote prosMake informed product decisions

- No public GitHub repository available -

What is Closure Compiler?

The Closure Compiler is a tool for making JavaScript download and run faster. It is a true compiler for JavaScript. Instead of compiling from a source language to machine code, it compiles from JavaScript to better JavaScript. It parses your JavaScript, analyzes it, removes dead code and rewrites and minimizes what's left. It also checks syntax, variable references, and types, and warns about common JavaScript pitfalls.

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.

Need advice about which tool to choose?Ask the StackShare community!

What companies use Closure Compiler?
What companies use Prepack?
See which teams inside your own company are using Closure Compiler or Prepack.
Sign up for StackShare EnterpriseLearn More

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

What tools integrate with Closure Compiler?
What tools integrate with Prepack?

Blog Posts

What are some alternatives to Closure Compiler and Prepack?
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.
Babel
Babel will turn your ES6+ code into ES5 friendly code, so you can start using it right now without waiting for browser support.
UglifyJS
This package implements a general-purpose JavaScript parser/compressor/beautifier toolkit. It is developed on NodeJS, but it should work on any JavaScript platform supporting the CommonJS module system (and if your platform of choice doesn’t support CommonJS, you can easily implement it, or discard the exports.* lines from UglifyJS sources).
TypeScript
TypeScript is a language for application-scale JavaScript development. It's a typed superset of JavaScript that compiles to plain JavaScript.
See all alternatives