rive-app / rive-wasm

Wasm/JS runtime for Rive
MIT License
660 stars 46 forks source link

fix for loop over animatables without changing typescript target #322

Closed zplata closed 1 year ago

zplata commented 1 year ago

Typescript build failed on this recent change due to Typescript config targeting es5 and not supporting interating on iterators in the .entries() case. A probably easier and safer option for now is just to switch this to a traditional index for loop, before moving the target up to es2015 (which is probably fine honestly, but for a small change this might be safer).