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.
The defaults are set in the aptly named CompilationLevel.java file. The default compilation level is SIMPLE_OPTIMIZATIONS
.
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.