MatAtBread / fast-async

605 stars 21 forks source link

Fix AST parsing for Babel 7.0.0-beta.41. #52

Closed phyllisstein closed 6 years ago

phyllisstein commented 6 years ago

As of https://github.com/babel/babel/pull/7436, Babel no longer provides the AST to plugins by default. This change explicitly sets the ast option to true when transforming the runtime.

matAtWork commented 6 years ago

Sorry for the delay in merging this - I managed to miss it somehow.

This version is now published on npm as v7, and I've kept the babel v7-specific bits in the 'babel-v7' branch. The non-v7 code is still in master, and has all references to babel@7.x.x removed. It has been published as fast-async@6.3.2.

While you here, please upvote/comment on https://github.com/babel/babel/pull/7076, which incorporate the base nodent transforms within babel, which should avoid much of this refactoring in the future!

phyllisstein commented 6 years ago

Thanks! That seems sensible, I'll keep that in mind if I submit any additional tweaks.