The downlevelIteration flag controls how TypeScript transpiles Map, Set, and array iteration to older JavaScript. Production builds still break without it because the default transpilation produces index-based loops that fail on iterables. Here's what actually happens and when you must enable it.