Babel AST transform drops Recast's original
property
#12882
Labels
i: bug
i: needs triage
outdated
A closed issue/PR that is archived due to age. Recommended to make a new issue
Bug Report
Maybe you don't consider this a bug, but I thought I'd flag it anyway.
Current behavior
Recast (
0.20.4
) works by attaching anoriginal
property to AST nodes.babel.transformFromAst
drops that property, preventing Recast from working as expected.This is demonstrated by the following script:
This produces:
Expected behavior
Program output:
Environment
Possible Solution
This workaround addresses the issue, but it's a bit cumbersome. Here's the snippet above with the workaround applied:
Additional context
The text was updated successfully, but these errors were encountered: