Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add support for Builder visualization #603

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ganemone
Copy link

This adds support for a Builder tab in the visualization menu that will
generate code to recreate the original ast in the code editor using
calls to ast node constructors in the @babel/types library.

This can be very useful when writing codemods to quickly determine the
proper usage of @babel/types library to generate ast nodes.

Giancarlo Anemone added 2 commits August 26, 2021 12:51
This adds support for a Builder tab in the visualization menu that will
generate code to recreate the original ast in the code editor using
calls to ast node constructors in the @babel/types library.

This can be very useful when writing codemods to quickly determine the
proper usage of @babel/types library to generate ast nodes.
@ganemone
Copy link
Author

Simple Example:

Screen Shot 2021-08-26 at 1 00 38 PM

Complex Example:

Screen Shot 2021-08-26 at 1 01 36 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant