Closed surma closed 4 years ago
I actually should have most of this work done per this comment, I'll take a minute next chance I get and make sure I didn't do anything crazy then I'll put it into a PR. I can also stack the other transpile-y changes on top in a separate commit if that's a change you want to make (see last comment in #3)
Note that even though the release has been stalled until it has been migrated into the rollup/plugins repo, the babel plugin already has an option on master to transpile generated code such as this one. Once this is released, it can be used to transpile to lower compatibility targets provided a Promise polyfill is added. Once this is released, I am not sure there is much value in going below ES6 as there is only one "browser" (aka the "compatibility solution") that is somewhat in use and still needs it. This would save a few bytes for everyone that does not depend on it. Of course, it would mean extra friction for everyone who needs to support it.
I removed all usage of async/await in 398dae5. There’s probably some golfing opportunities, but it’s good enough for now :)
Published in v1.4.0
via @lukastaegert