Re:Closure Compiler in JavaScript
by magicalist on Tuesday December 06, 2016 @02:03PM
(#13117296)
> but I don't understand how something framed on desktop OSs could compile to JS, a browser language
GWT compiles Java to JS. If the Closure Compiler is mostly Java code, you only need to implement a few native code things (like replace file loading with just giving it source code as strings) in JS to do a cross compile to javascript.
GWT compiles Java to JS. If the Closure Compiler is mostly Java code, you only need to implement a few native code things (like replace file loading with just giving it source code as strings) in JS to do a cross compile to javascript.