Fix bug where --generate_exports=false failed to disable the flag
@@ -1884,13 +1884,8 @@ public class CommandLineRunner extends AbstractCommandLineRunner<Compiler, Compi
level.setWrappedOutputOptimizations(options);
}
- if (flags.generateExports) {
options.setGenerateExports(flags.generateExports);
- }
-
- if (flags.exportLocalPropertyDefinitions) {
- options.setExportLocalPropertyDefinitions(true);
- }
+ options.setExportLocalPropertyDefinitions(flags.exportLocalPropertyDefinitions);
WarningLevel wLevel = flags.warningLevel;
wLevel.setOptionsForWarningLevel(options);
