clarus / redux-ship

Side effects with snapshots for Redux.
https://clarus.github.io/redux-ship/
MIT License
609 stars 19 forks source link

How to use it without babel-polyfill? #10

Open apiep opened 7 years ago

apiep commented 7 years ago

As the title stand. Any how I can use it without babel-polyfil? Because the dist / compiled file need globally available regeneratorRuntime.

Maybe something like un-compiled version? So, the dev can compile it by him self by utilizing babel-runtime & babel-transform-runtime?

Thanks, it was a good libs by the way :)

clarus commented 7 years ago

Thanks for your feedback.

I think to run it in an ES5 environment we need a babel-polyfill to implement the generators. Are you are talking about compiling an ES6 version too? In Redux they seem to do it in this way: https://github.com/reactjs/redux/blob/master/package.json#L29 Does that sound reasonable?