
S1 E1 - Why ClojureScript with David Nolen
ClojureStream Podcast
00:00
Java Scripts - Java Closure and Tree Shaking
In order for Google closure to do dead code elimination and tree shaking, you have to write your JavaScript in a very sort of relatively strict style. In the jQuery days, like string programming, string-based programming is very common. So those are things that Google closure can't analyze because they're dynamic lookups. And so what Richikki did was he said, okay, this script is going to emit Google closure compatible stuff that Googleclosure can immediately analyze and easily tree shake.
Transcript
Play full episode