diff --git a/polygerrit-ui/app/rules.bzl b/polygerrit-ui/app/rules.bzl index ca8c402227..075e34a39d 100644 --- a/polygerrit-ui/app/rules.bzl +++ b/polygerrit-ui/app/rules.bzl @@ -20,6 +20,7 @@ def polygerrit_bundle(name, srcs, outs, app): ], language = "ECMASCRIPT5", deps = [name + "_closure_lib"], + dependency_mode = "PRUNE_LEGACY", ) # TODO(davido): Remove JSC_REFERENCE_BEFORE_DECLARE when this is fixed upstream: diff --git a/tools/bzl/js.bzl b/tools/bzl/js.bzl index 2726f4154c..e6c48709df 100644 --- a/tools/bzl/js.bzl +++ b/tools/bzl/js.bzl @@ -484,6 +484,7 @@ def polygerrit_plugin(name, app, srcs = [], deps = [], assets = None, plugin_nam deps = [ name + "_closure_lib", ], + dependency_mode = "PRUNE_LEGACY", ) if html_plugin: