Home / Companies / Google Cloud / Blog / Post Details
Content Deep Dive

Closure Compiler in JavaScript

Blog post from Google Cloud

Post Details
Company
Date Published
Author
-
Word Count
484
Language
English
Hacker News Points
-
Summary

In August 2016, Google announced the release of the Closure Compiler in pure JavaScript, allowing it to be used without Java and designed to run under NodeJS, supporting popular build tools. The Closure Compiler is a JavaScript optimizer, transpiler, and type checker that compiles code into a high-performance, minified version and is widely used in Google's web frontends to produce compact, fast code. This new JavaScript version supports ES2015 features and provides polyfills for unsupported methods, helping developers write better, maintainable, and scalable code by checking syntax and types while offering warnings for common JavaScript pitfalls. The release is not a rewrite but a compilation of Java source to JavaScript, intended to run under Node or browsers, and while experimental, it marks a significant addition to the compiler landscape. Developers can include the JS version in projects using NPM and Gulp, although it lacks direct filesystem interaction and some flags from the Java version.