Sets flag to true (#5454)

This commit is contained in:
alschmiedt
2021-09-17 11:15:20 -07:00
committed by GitHub
parent 6dbc534dcc
commit 28fadf8c15

View File

@@ -119,7 +119,7 @@ function compile(compilerOptions, opt_verbose, opt_warnings_as_error,
options.warning_level = opt_verbose ? 'VERBOSE' : 'DEFAULT';
options.language_in = 'ECMASCRIPT6_STRICT',
options.language_out = 'ECMASCRIPT5_STRICT';
options.rewrite_polyfills = false;
options.rewrite_polyfills = true;
options.hide_warnings_for = 'node_modules';
if (opt_warnings_as_error || opt_strict_typechecker) {
options.jscomp_error = JSCOMP_ERROR;