Is it possible to use Closure Compiler ADVANCED_OPTIMIZATIONS with jQuery?

compiler-construction, google-closure, google-closure-compiler, javascript, jquery

Solution

You have to declare jQuery as an extern to the compiler...however I'm not sure if anyone's made one, there was an extern file for 1.3.2, but I haven't seen any 1.4+ versions.

Edit: this issue thread here has the community building a 1.4 version.

Problem

I keep getting errors that the function (renamed) does not exist for the given object. Is there a release or setting or something to make it work?

Original source