Add a couple of optimization passes to j2cl tests to speed up jscompiler runtime.
@@ -110,4 +110,9 @@ J2CL_OPTIMIZED_DEFS = (J2CL_UNOPTIMIZED_DEFS + CLOSURE_COMPILER_FLAGS_FULL_TYPED
# TODO(28940369): convert to optimized defs.
J2CL_TEST_DEFS = make_output_readable(J2CL_UNOPTIMIZED_DEFS + [
"--export_test_functions=true",
+ # Disable some optimizations which slow things down.
+ "--compute_function_side_effects=false",
+ # Enable some optimizations which speed things up.
+ "--smart_name_removal",
+ "--extra_smart_name_removal",
])
