Polymer & the Closure Compiler
summary
Closure Compiler compiles, typechecks and minifies Polymer code using either SIMPLE or ADVANCED modes; SIMPLE gives type warnings with minimal annotations while ADVANCED renames properties and needs workarounds like string keys, goog.reflect.object or polymer-rename. The tool ships as a Java JAR and now a pure-JS build, requires a polymer-pass flag and HTML→JS extraction (crisper). Google runs it across ~350 Polymer build targets with Bazel and Piper, and it produces reliably smaller, checked bundles used in production.
AI-written summary · about
chapters (14)
- 0:00Intro
- 0:58Closure Compiler
- 2:04Your first compile
- 4:00Simple compilation
- 5:36The hard parts
- 7:42Closure is about types
- 8:24Element types
- 9:04Behaviours
- 10:56Advanced, continued
- 12:37Further reading
- 13:27Polymer inside Google
- 13:38Pulling back the curtain
- 14:36PIPER is PIPER expanded recursively
- 16:03Projects








