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

Don't prevent babel options to help setup lingui in monorepos #454

Merged
merged 1 commit into from
Feb 19, 2019

Conversation

adamscybot
Copy link
Contributor

@adamscybot adamscybot commented Feb 13, 2019

Currently, lingui complains with option validation issues if you attempt to use the extends or rootMode babel options. In a monorepo, with Babel 7, you often want message extraction to happen in each module, but using a common babel configuration that exists in a top level "workspace"

We should allow these options without throwing warnings. I'm not sure we should actually have any validation on the babel options (since whats allowed depends on babel version, and theres not much need to limit he feature set) so potentially, this validation could be removed entirely.

@adamscybot
Copy link
Contributor Author

@tricoder42 Is there any chance you could take a look at this PR :). Happy to modify to remove all validation of babel options.

@tricoder42
Copy link
Contributor

@adamscybot Ah, sorry, completely forgot about it.

yeah, I had another problem with config validation before, so I'm gonna probably move away from jest-validate in the future.

@tricoder42 tricoder42 merged commit d62f64c into lingui:master Feb 19, 2019
@tricoder42
Copy link
Contributor

And thanks for the PR! 👍

@tricoder42
Copy link
Contributor

Released in 2.7.4

@adamscybot
Copy link
Contributor Author

Thanks a lot!

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

Successfully merging this pull request may close these issues.

2 participants