website icon indicating copy to clipboard operation
website copied to clipboard

feature request: Parser playground

Open sosukesuzuki opened this issue 5 years ago • 2 comments

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.

sosukesuzuki avatar Feb 05 '21 21:02 sosukesuzuki

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

JLHwung avatar Feb 05 '21 21:02 JLHwung

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

bradzacher avatar Nov 29 '21 21:11 bradzacher