Why would I use this over babel?
Babel can be used in the same toolchain as Closure Compiler, they're not mutually exclusive or redundant as they perform different tasks.
21–30 of 115 posts
Why would I use this over babel?
Babel can be used in the same toolchain as Closure Compiler, they're not mutually exclusive or redundant as they perform different tasks.
Does anyone know what this means for clojurescript?
https://groups.google.com/d/msg/clojurescript/jMSQChpCdhg/p7...
Does anyone know what this means for clojurescript?
> How does this work?
>
> This isn't a rewrite of Closure in JavaScript. Instead, we compile
> the Java source to JS to run under Node, or even inside a plain old
> browser. Every post or resource you see about Closure Compiler will
> also apply to this version.
Pretty wild.(PS Is it possible to have a biased account? I see a lot of articles I had posted, later posted by someone else make it to the front page.)
Why would I use this over babel?
The advanced compilation mode does some pretty powerful dead code removal and minification [1]. I guess that is available from plugins in Babel as well but Google has been using it for Gmail, Google.com etc, so it's quite battle tested. [1]: https://developers.google.com/closure/compiler/docs/api-tuto...
Earlier post: https://news.ycombinator.com/item?id=12415512 (PS Is it possible to have a biased account? I see a lot of articles I had posted, later posted by someone else make it to the front page.)
Earlier quoted context omitted.
It makes a completely self-hosted ClojureScript compiler possible.
clojurescript still requires clojure for macros, no?
Why would I use this over babel?
The advanced compilation mode does some pretty powerful dead code removal and minification [1]. I guess that is available from plugins in Babel as well but Google has been using it for Gmail, Google.com etc, so it's quite battle tested. [1]: https://developers.google.com/closure/compiler/docs/api-tuto...
Interestingly, we're finally starting to see these ideas get more mainstream as people adopt es6 modules and publish bundled code with explicit externs in tools like Webpack 2 and Rollup.