Reputation: 14910
Is it somehow possible to pass command line flags like --language_in=ECMASCRIPT5
or --jscomp_off=internetExplorerChecks
to the Google Closure Compiler Service API? I can't find it in the Service API Reference.
For reference, jscomp_off
is documented in Warnings and language_in
is documented in JavaScript.
Upvotes: 10
Views: 6740
Reputation: 5468
https://github.com/google/closure-compiler/wiki/Additional-Webservice-Options
You can use "language" as a webservice option. Through the UI add:
// @language ECMASCRIPT5
to the compiler configuration comment block.
Upvotes: 20