Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
xtrumanx
· 11y ago · 0 comments
Aren't generators part of Babel? As long as you target ES5 shouldn't you be able to use generators via Babel?
Comments
[–]
kenOfYugen
11y ago
Generator functions are part of ES6/2015 and are supported by babel. But keep note that downgrading them to ES5 spec. includes a performance trade-off.