Nicolò Ribaudo 59976680df
Extract for-of iterator handling to a helper (#11262)
* Extract for-of iterator handling to a helper

Dis greatly recudes the code size when for-of is used multiple times across the
codebase. Also, makes it easier to read what's happening in a compiled loop.

* Unify spec and loose code

* Legacy implementation fallback

* Update tmp var name

* Updates from review and after rebase
2020-03-17 00:45:34 +01:00

16 lines
354 B
JSON

{
"plugins": [
"proposal-class-properties",
["external-helpers", { "helperVersion": "7.100.0" }],
"syntax-typescript",
"syntax-flow",
"transform-parameters",
"transform-block-scoping",
"transform-spread",
"transform-classes",
"transform-destructuring",
"transform-arrow-functions",
"transform-for-of"
]
}