简体   繁体   中英

Google Closure Compiler: default CompilerOptions

In the source code, the Class CompilerOptions is used to control the compilation process. We can manually configure the options by calling "setXXX()" methods, such as "foldConstants" and "removeDeadCode". So what is the default options of the latest released closure compiler ? Can anyone list all the activated options, thanks :)

The options are set based on a combination of factors. The primary 2 being the --compilation_level and --warning_level flags.

Compilation Level

The defaults are set in the aptly named CompilationLevel.java file. The default compilation level is SIMPLE_OPTIMIZATIONS .

Warning Level

The defaults are set in the aptly named WarningLevel.java file.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM