javascriptjquerygoogle-closure-compilergoogle-closure

Is it possible to use Closure Compiler ADVANCED_OPTIMIZATIONS with jQuery?


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?


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.