Skip to content
This repository has been archived by the owner on Dec 1, 2022. It is now read-only.

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

Open
Morritz opened this issue Mar 9, 2021 · 0 comments

Comments

@Morritz
Copy link

Morritz commented Mar 9, 2021

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant