From 1dccfef9dbd0062ffdb146cbe511e1d9f73b2d0a Mon Sep 17 00:00:00 2001 From: Sergiusz Bazanski Date: Fri, 5 Jul 2019 19:08:54 +0200 Subject: [PATCH] rollup_bundle/tsc: add --downlevelIteration This allows usage of for..of on iterators, even when targeting ES5. --- internal/rollup/rollup_bundle.bzl | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/rollup/rollup_bundle.bzl b/internal/rollup/rollup_bundle.bzl index b414b2ea18..b424a13991 100644 --- a/internal/rollup/rollup_bundle.bzl +++ b/internal/rollup/rollup_bundle.bzl @@ -245,6 +245,7 @@ def _run_tsc(ctx, input, output): args.add_all(["--target", "es5"]) args.add_all(["--lib", "es2015,dom"]) args.add("--allowJS") + args.add("--downlevelIteration") args.add(input.path) args.add_all(["--outFile", output.path])