web-ridge / create-react-native-web-application

A simple starting point for creating iOS, Android en webapp in 1 codebase with React Native (Web)
https://www.npmjs.com/package/create-react-native-web-application
MIT License
42 stars 2 forks source link

Why @babel/plugin-proposal-class-properties is not supported by default? #8

Open Morritz opened 3 years ago

Morritz commented 3 years ago

Support for the experimental syntax 'classProperties' isn't currently enabled. The solution was to use: addExternalBabelPlugin('@babel/plugin-proposal-class-properties') in config-overrides.js along with addExternalBabelPlugin('@babel/plugin-transform-react-jsx'), because putting "plugin-proposal-class-properties" in babel.config.js didn't make effect.

Something should be done that it would be supported right out of the box.