-
Notifications
You must be signed in to change notification settings - Fork 482
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
how can I add @babel/plugin-proposal-private-methods to jscodeshift ? #560
Comments
Two recommendations: (DISCLAIMER: Don't take this as a verbatim, literal answer, and I don't suspect it to run without considerable tweaking. I copy-pasted from source code for the babylon parser options in jscodeshift and GPT'ed it into JSON) Make use of the --parser-config command line option and pass it the path a JSON file with babel parser configuration. e.g. a file named custom_parser_config.json
Then run a command like:
Incidentially, there's two takeaways I have from this issue:
|
this custom parser didn't worked for me |
Did you also install the node module for the plugin? |
+1 |
where can I change this ? |
node_modules/write-file-atomic/node_modules/signal-exit/dist/cjs/index.js: Class private methods are not enabled. Please add
@babel/plugin-proposal-private-methods
to your configuration.210 | this.#emitter.count -= 1;
The text was updated successfully, but these errors were encountered: