@@ -168,21 +168,28 @@ def __getOptimizedCompilerArgs():
168
168
compilerArgs = [
169
169
'--charset UTF-8' ,
170
170
'--compilation_level ADVANCED_OPTIMIZATIONS' ,
171
+
171
172
'--process_closure_primitives' ,
173
+
172
174
'--language_in ECMASCRIPT3' ,
173
175
'--language_out ECMASCRIPT3' ,
176
+
177
+ '--hide_warnings_for "contrib/closure-library"' ,
174
178
'--assume_function_wrapper' ,
175
179
'--use_types_for_optimization true' ,
180
+
176
181
'--output_wrapper "' + __get_file_overview () + '(function(){%output%})();"' ,
177
182
'--env BROWSER' ,
183
+
178
184
'--extra_annotation_name "includeDoc"' ,
179
185
'--extra_annotation_name "illustration"' ,
180
186
'--extra_annotation_name "illustrationDesc"' ,
181
187
'--extra_annotation_name "ignoreDoc"' ,
182
188
'--extra_annotation_name "propertyDoc"' ,
183
189
'--extra_annotation_name "shortDescription"' ,
190
+
184
191
'--warning_level VERBOSE' ,
185
- '--hide_warnings_for "libs/closure-library"' ,
192
+
186
193
'--jscomp_warning accessControls' ,
187
194
'--jscomp_warning ambiguousFunctionDecl' ,
188
195
'--jscomp_warning checkDebuggerStatement' ,
@@ -191,7 +198,6 @@ def __getOptimizedCompilerArgs():
191
198
'--jscomp_warning checkTypes' ,
192
199
'--jscomp_warning checkVars' ,
193
200
'--jscomp_warning closureDepMethodUsageChecks' ,
194
- '--jscomp_warning commonJsModuleLoad' ,
195
201
'--jscomp_warning conformanceViolations' ,
196
202
'--jscomp_warning const' ,
197
203
'--jscomp_warning constantProperty' ,
@@ -206,7 +212,6 @@ def __getOptimizedCompilerArgs():
206
212
'--jscomp_warning fileoverviewTags' ,
207
213
'--jscomp_warning functionParams' ,
208
214
'--jscomp_warning globalThis' ,
209
- '--jscomp_warning inferredConstCheck' ,
210
215
'--jscomp_warning internetExplorerChecks' ,
211
216
'--jscomp_warning invalidCasts' ,
212
217
'--jscomp_warning misplacedTypeAnnotation' ,
@@ -244,7 +249,7 @@ def __getDefaultCompilerArgs(outputFile):
244
249
'java -jar' ,
245
250
COMPILER_PATH ,
246
251
'--js="%s"' % os .path .join (SRC_PATH , '**.js' ),
247
- '--js="%s"' % os .path .join (CLOSURE_LIBRARY_PATH , '**.js' ),
252
+ '--js="%s"' % os .path .join (CLOSURE_SOURCE_PATH , '**.js' ),
248
253
'--define "goog.DEBUG=false"' ,
249
254
'--js_output_file ' + outputFile ,
250
255
'--dependency_mode=STRICT' ,
0 commit comments