Open jedwards1211 opened 1 year ago
This is something I might try to make a PR for soon...
For astx I have started building my own custom fork of ast-types from metadata in @babel/types so that it never lags behind what babel is able to parse.
astx
ast-types
@babel/types
However I'm running into #1230 because even if I build my own ast-types fork, I can't make recast use it.
recast
The only long-term solution to issues like #1230 is to be able to do something like
const ast = recast.parse(code, { parser: myConfiguredBabelParser, types: myConfiguredAstTypes, })
This is something I might try to make a PR for soon...
For
astx
I have started building my own custom fork ofast-types
from metadata in@babel/types
so that it never lags behind what babel is able to parse.However I'm running into #1230 because even if I build my own
ast-types
fork, I can't makerecast
use it.The only long-term solution to issues like #1230 is to be able to do something like