-
Notifications
You must be signed in to change notification settings - Fork 60
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 for the experimental syntax 'classProperties' isn't currently enabled #44
Comments
Hey @SampsonCrowley, This is not supported by CRA v2 by default, since it's experimental syntax. However, I fixed this in my boilerplate since I needed this asap (https://github.com/hodgef/js-library-boilerplate) Basically, add this to your package.json
and this to your webpack.config.demo
then run Regards |
@hodgef i can say with 100% certainty that is supported by v2 off the bat. I have not added anything to my babel config, or the plugins in my package.json for any of the CRA apps i'm currently building and they all work just fine with class properties notice line 21 in babel preset react-app used by CRA: |
@hodgef after rereading that thread I think I found the source of my confusion. application code does indeed have it enabled as I have verified, but library code specifically doesn't |
this is something that is DEFINITELY in CRA
ideas?
The text was updated successfully, but these errors were encountered: