You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
@react-native/babel-preset fails on class static blocks: "Static class blocks are not enabled" #59853
@react-native/babel-preset enables the class-features plugins (transform-private-methods / transform-private-property-in-object in the Hermes profiles, transform-class-properties in default) but not @babel/plugin-transform-class-static-block. Those plugins throw on a class static { } block (ES2022), so any app file or dependency that contains one breaks the bundle. babel-preset-expo added the plugin for this reason (expo/expo#37495).
Steps to reproduce
Take the reproducer template (RN 0.88.1) and add a class with a static block to App.tsx:
Activity