Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use language_in or jscomp_off with Google Closure Compiler Service API

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.

like image 816
studgeek Avatar asked Apr 19 '12 00:04

studgeek


1 Answers

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.

like image 76
John Avatar answered Dec 09 '22 16:12

John