OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 # Args for all uses of the closure compiler | 5 # Args for all uses of the closure compiler |
6 common_closure_args = [ | 6 common_closure_args = [ |
7 "extra_annotation_name=attribute", | 7 "extra_annotation_name=attribute", |
8 "extra_annotation_name=demo", | 8 "extra_annotation_name=demo", |
9 "extra_annotation_name=element", | 9 "extra_annotation_name=element", |
10 "extra_annotation_name=group", | 10 "extra_annotation_name=group", |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 "chrome_pass", | 46 "chrome_pass", |
47 "polymer_pass", | 47 "polymer_pass", |
48 ] | 48 ] |
49 | 49 |
50 # Additional closure arguments for minifying | 50 # Additional closure arguments for minifying |
51 minifying_closure_args = [ | 51 minifying_closure_args = [ |
52 "compilation_level=WHITESPACE_ONLY", | 52 "compilation_level=WHITESPACE_ONLY", |
53 | 53 |
54 "language_in=ECMASCRIPT_NEXT", | 54 "language_in=ECMASCRIPT_NEXT", |
55 "language_out=ECMASCRIPT6", | 55 "language_out=ECMASCRIPT6", |
| 56 |
| 57 # TODO(wychen): turn on 'use strict'. crbug.com/729689 |
| 58 "emit_use_strict=false", |
56 ] | 59 ] |
57 | 60 |
58 # For compatibility with old uses. | 61 # For compatibility with old uses. |
59 default_closure_args = common_closure_args + checking_closure_args | 62 default_closure_args = common_closure_args + checking_closure_args |
60 | 63 |
61 default_disabled_closure_args = [ | 64 default_disabled_closure_args = [ |
62 "jscomp_off=duplicate", | 65 "jscomp_off=duplicate", |
63 "jscomp_off=misplacedTypeAnnotation", | 66 "jscomp_off=misplacedTypeAnnotation", |
64 ] | 67 ] |
OLD | NEW |