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

feature request: Parser playground #2445

Open
sosukesuzuki opened this issue Feb 5, 2021 · 2 comments
Open

feature request: Parser playground #2445

sosukesuzuki opened this issue Feb 5, 2021 · 2 comments

Comments

@sosukesuzuki
Copy link
Member

I sometimes report issues related latest babel/parser. When I report, I use the local babel repository to reproduce problems. That's because there is no way to see the latest @babel/parser behavior on a browser(We cannot use lastest version on https://astexplorer.net/.

It is useful to have an official @babel/parser playground, like https://babeljs.io/repl.

@JLHwung
Copy link
Contributor

JLHwung commented Feb 5, 2021

We cannot use lastest version on https://astexplorer.net/

A workaround is to build @babel/parser locally and upload (locally) to https://lihautan.com/babel-ast-explorer. You can find the website source on https://github.com/tanhauhau/babel-ast-explorer

@bradzacher
Copy link

As an example - the typescript-eslint now has a playground that also has support for showing the AST:
https://typescript-eslint.io/play#ts=4.5.2&sourceType=module&showAST=true&code=C4TwDgpgBAKlC8UCMBuAUBAHmA9gJ2ClEigG9YoBfdIA&rules=N4XyA&tsConfig=N4XyA

Which makes astexplorer.net obsolete for ts-estree

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

No branches or pull requests

3 participants