Open nikolalukovic opened 6 years ago
Yep, I have been thinking about this for a long time.
My conclusions were:
I don't know if there is any way to disable some parts of the code depending on the target (maybe with gulp?). It would be very nice to achieve this, but I have no idea how. Any ideas?
The best idea I have is to create a fork of this repo (and new package) targetting ES6
Maybe the best idea would be to release the ES5 version first with all the methods and features you want implemented. This could be, lets say 1.0.0 version. The 2.0.0 version would target ES6 and use generator functions. It would allow users to choose what to use without splitting the project and the user-base unnecessarily.
working on this (part of v2 refactor)
What do you think about using generator functions for lazy execution?