fkling / astexplorer

A web tool to explore the ASTs generated by various parsers.
https://astexplorer.net/
MIT License
6.14k stars 729 forks source link

"require is not defined" for babel helpers #648

Open abejfehr opened 2 years ago

abejfehr commented 2 years ago

Describe the bug I'd like to prototype a babel plugin using this tool

To Reproduce Simply paste the example from this page into AST Explorer, with @babel/parser and babelv7

Expected behavior The code should compile, but it just says require is not defined

Link https://astexplorer.net/#/gist/d1f885f50ed5768a6424565593218177/039b053eb350e562394d83650894173cd7d2eb6f

Browser (please complete the following information):

astexplorer settings:

Yash-Singh1 commented 2 years ago

Getting this problem too when trying to use @typescript-eslint/utils in rules.