Skip to content

Commit

Permalink
rollup_bundle/tsc: add --downlevelIteration
Browse files Browse the repository at this point in the history
This allows usage of for..of on iterators, even when targeting ES5.
  • Loading branch information
q3k authored and alexeagle committed Jul 9, 2019
1 parent 1217a17 commit 1dccfef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/rollup/rollup_bundle.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -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])

Expand Down

0 comments on commit 1dccfef

Please sign in to comment.