whatisgithub

What is rollup-plugin-closure-compiler-js?

gaearon/rollup-plugin-closure-compiler-js — explained in plain English

Analysis updated 2026-07-17 · repo last pushed 2017-11-07

2JavaScriptAudience · developerComplexity · 2/5DormantSetup · easy

In one sentence

A Rollup plugin that runs Google's Closure Compiler on your bundle automatically, shrinking JavaScript output as part of your build.

Mindmap

mindmap
  root((repo))
    What it does
      Minifies JS bundles
      Wraps Closure Compiler
      Rollup integration
    Tech stack
      JavaScript
      Rollup
      Closure Compiler
    Use cases
      Smaller bundle sizes
      Faster page loads
    Audience
      Frontend developers
      Library authors

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 build with it?

USE CASE 1

Shrink a JavaScript library's bundle size automatically during the Rollup build step.

USE CASE 2

Reduce page load times for a frontend app by compressing the final JS output.

USE CASE 3

Replace a separate command-line Closure Compiler step with an integrated Rollup plugin.

What is it built with?

JavaScriptRollupClosure Compilernpm

How does it compare?

gaearon/rollup-plugin-closure-compiler-js3imed-jaberi/cryptography-si-isamm3imed-jaberi/koa-isomorphic-router
Stars222
LanguageJavaScriptJavaScriptJavaScript
Last pushed2017-11-072021-09-252021-02-06
MaintenanceDormantDormantDormant
Setup difficultyeasyeasyeasy
Complexity2/51/52/5
Audiencedeveloperresearcherdeveloper

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

How do you get it running?

Difficulty · easy Time to first run · 5min

Copy-paste prompts

Prompt 1
Show me how to add this plugin to my rollup.config.js file.
Prompt 2
Explain what optimizations Google Closure Compiler applies to my bundled JavaScript.
Prompt 3
Help me configure this plugin's compression options for a React component library.
Prompt 4
Compare using this plugin versus running Closure Compiler as a separate CLI step.

Frequently asked questions

What is rollup-plugin-closure-compiler-js?

A Rollup plugin that runs Google's Closure Compiler on your bundle automatically, shrinking JavaScript output as part of your build.

What language is rollup-plugin-closure-compiler-js written in?

Mainly JavaScript. The stack also includes JavaScript, Rollup, Closure Compiler.

Is rollup-plugin-closure-compiler-js actively maintained?

Dormant — no commits in 2+ years (last push 2017-11-07).

How hard is rollup-plugin-closure-compiler-js to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is rollup-plugin-closure-compiler-js for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.