-
-
Notifications
You must be signed in to change notification settings - Fork 153
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
Should @babel/plugin-syntax-jsx
be a prod dependency instead of a peer dependency?
#516
Comments
BTW my project doesn't use JSX at all as it's a server project, that's why this dependency isn't present. |
I think peer dependency is correct. eslint plugins never ship pure dependencies because as a consumer you can choose a wide range of versions of the plugin you need that this plugin may also depend on. Steps to solve should be
fyi it's like how flow-typed doesn't have jsx either but it's forced to install @babel/plugin-transform-react-jsx |
Following #513
@babel/plugin-syntax-jsx
is used. However in my project it's currently not installed, and as a result I get errors like:I wonder why it's a peer dependency instead of a prod dependency?
The text was updated successfully, but these errors were encountered: