开发者

Does GWT reuse Google Closure Compiler, and why if not?

开发者 https://www.devze.com 2023-04-04 02:05 出处:网络
Google Web Toolkit (GWT) performs inlining of javascript code, minifying and removing unused code, and some other optimizations which are also done by Google Closure Compiler. So I was wondering if Cl

Google Web Toolkit (GWT) performs inlining of javascript code, minifying and removing unused code, and some other optimizations which are also done by Google Closure Compiler. So I was wondering if Closure Compiler is in fact utilized in GWT or do they have two separate implementat开发者_高级运维ions? If so, then what is the restriction/reasoning for not reusing Google Closure Compiler in GWT?


Commit 10778: Closure JS hookup hooks GWT to the closure compiler.

Probably with GWT 2.5, at least behind the scenes, GWT may use the closure compiler.


Update

Closure Support has been removed


GWT does not currently use Closure Compiler, GWT does the bulk of its optimization while the code is in Java form.

While there are many aspects of CC that are redundant for GWT, there is some interest in using it, however it isn't as simple as simply post processing the GWT output as the default GWT "linker" makes the code opaque to CC.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号