Nicolò Ribaudo
ea6a438315
Enable external-helpers by default in tests ( #12911 )
...
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
Co-authored-by: Babel Bot <babel-bot@users.noreply.github.com>
2021-02-26 23:33:26 +01:00
Nicolò Ribaudo
58d2f41930
Transform labeled for-of inside braceless if statement ( #12611 )
2021-01-12 12:19:15 -06:00
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
Daniel Tschinder
a559397feb
Move array reference into for head initializer ( #9698 )
...
* Move array reference into for head initializer
* Update packages/babel-plugin-transform-for-of/src/index.js
Co-Authored-By: danez <daniel@tschinder.de>
* Fix tests
2019-03-23 17:57:17 -07:00
Daniel Tschinder
f36a6987e4
Correctly preserve reference to array in for-of loop ( #9697 )
...
* Correctly preserve reference to array in for-of loop
* Add more tests
2019-03-17 21:41:35 -07:00
Nicolò Ribaudo
8659e1a88c
Remove old expected.{js,json} files ( #7187 )
2018-01-09 13:10:30 -06:00
Raja Sekar
0f42accb87
Renamed files
2018-01-09 15:36:42 +01:00
Henry Zhu
9ac326b075
remove es20xx prefixes from plugins and rename folders ( #6575 )
2017-10-28 20:43:15 -04:00