-
Basically my question is in the title - why do we need @babel/plugin-proposal-class-properties in babel config? I'm asking this because of this issue facebook/react-native#24421 , and removing the plugin doesn't seem to break anything in my app. So I'm wondering what exactly is the need/use case for this babel plugin, and when can we omit this? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hey, we provided a few examples here: #3216 Maybe we'll need to add this information to the documentation. There is also a JS one line script to check if your transpiler configured correctly, please check it: https://mobx.js.org/installation.html#use-spec-compliant-transpilation-for-class-properties If it throws, your compiler needs tweaks described in the documentation. |
Beta Was this translation helpful? Give feedback.
-
Try #3100 (comment) |
Beta Was this translation helpful? Give feedback.
Hey, we provided a few examples here: #3216
Maybe we'll need to add this information to the documentation. There is also a JS one line script to check if your transpiler configured correctly, please check it: https://mobx.js.org/installation.html#use-spec-compliant-transpilation-for-class-properties
If it throws, your compiler needs tweaks described in the documentation.