diff options
author | Michael Zhou <zhoumotongxue008@gmail.com> | 2016-02-18 18:52:14 +0000 |
---|---|---|
committer | Damien Martin-Guillerez <dmarting@google.com> | 2016-02-19 08:56:51 +0000 |
commit | be197832a419963efbbd7787bdcbcc648f2c46d7 (patch) | |
tree | baa00b2d6079a9e921898bb06a009a4bfab5c0a8 /tools | |
parent | 8ec3866d9e5d28f6c09546269ec82731c45c28ad (diff) |
Fix issues with commit 650533fffccb97910338f335939de76922c9f679
Change --closure_entry_point to the new --entry_point that is required to be used with --dependency_mode.
Remove the default --language_in=ECMASCRIPT5_STRICT. Closure Compiler now defaults to ECMASCRIPT6.
--
Reviewed-on: https://github.com/bazelbuild/bazel/pull/926
MOS_MIGRATED_REVID=114980140
Diffstat (limited to 'tools')
-rw-r--r-- | tools/build_rules/closure/closure_js_binary.bzl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/build_rules/closure/closure_js_binary.bzl b/tools/build_rules/closure/closure_js_binary.bzl index 447dd09cee..c4453ffb10 100644 --- a/tools/build_rules/closure/closure_js_binary.bzl +++ b/tools/build_rules/closure/closure_js_binary.bzl @@ -71,9 +71,8 @@ def _impl(ctx): srcs += dep.transitive_js_srcs args = [ - "--closure_entry_point=%s" % ctx.attr.main, + "--entry_point=goog:%s" % ctx.attr.main, "--js_output_file=%s" % ctx.outputs.out.path, - "--language_in=ECMASCRIPT5_STRICT", "--dependency_mode=LOOSE", "--warning_level=VERBOSE", ] + (["--js=%s" % src.path for src in srcs] + |