-
Notifications
You must be signed in to change notification settings - Fork 27
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
Support custom babel configuration #39
Comments
Yes, this would make perfect sense. Ideally, |
@alexanderwallin can we just add some proposal plugins for now, so I can start using this tool, and then start working on auto picking up project's .babelrc? |
If that's easy to setup, then sure. Would you be able to submit a PR? |
Yes, of course. I'll try when I get some time. |
Finally I found some time to make a PR. Now it is possible to parse my entire project. I made a quick research about picking up external babelrc: For example those users who support only latest browsers (chrome canary) can leave this list empty at all. And if we'll make a list of plugins according to .babelrc, out parser will not be able to parse code at all. The same issue exists in babel-eslint project (babel/babel-eslint#573). |
Thanks for the PR and clarification! Let's just keep it static for now, then. If things break, people can report it and we'll have another look. |
A lot of people are using various proposal plugins for babel. react-gettext-parser is unable to parse files using some additional syntax.
We need to just add more plugins to
.babelrc
to support common cases or, more preferably add support for custom configuration.The text was updated successfully, but these errors were encountered: