{"library":"rollup-plugin-closure-compiler-js","title":"rollup-plugin-closure-compiler-js","description":"Rollup plugin that invokes google-closure-compiler-js to optimize bundled JavaScript. Current stable version is 1.0.6, last released in 2017. The plugin wraps the deprecated google-closure-compiler-js (Java-based via Node) but users should note that google-closure-compiler-js itself was discontinued in 2018 in favor of google-closure-compiler (which uses the Java compiler natively). Key differentiators: simple Rollup integration, passes flags directly to the compiler. However, it is considered deprecated because the underlying closure-compiler-js package is no longer maintained.","language":"javascript","status":"deprecated","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-closure-compiler-js"],"cli":null},"imports":["import closure from 'rollup-plugin-closure-compiler-js'","import closure from 'rollup-plugin-closure-compiler-js'","// No type export; use inline types or import from google-closure-compiler-js\nimport type { CompileOptions } from 'google-closure-compiler-js'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { rollup } from 'rollup';\nimport closure from 'rollup-plugin-closure-compiler-js';\n\nasync function build() {\n  const bundle = await rollup({\n    input: 'src/index.js',\n    plugins: [\n      closure({\n        compilationLevel: 'SIMPLE',\n        languageIn: 'ECMASCRIPT6',\n        languageOut: 'ECMASCRIPT5'\n      })\n    ]\n  });\n  await bundle.write({\n    file: 'dist/bundle.js',\n    format: 'iife',\n    name: 'MyLib'\n  });\n}\n\nbuild().catch(err => console.error(err));","lang":"typescript","description":"Basic Rollup build that minifies the bundle using closure-compiler-js with simple optimizations.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}