Description
When building an app with React Native 0.85 and react-native-worklets 0.8.1, the bundling and debugging performance with Metro is very slow. This was not the case in React Native 0.84 with react-native-worklets 0.7.4.
Steps to reproduce
- Clone
https://github.com/EmilJunker/rn-worklets-bug
(it's a blank new RN 0.85.2 project where I added "react-native-worklets": "^0.8.1" as a dependency)
- Run
npm install and then npm run android
- After the build is done, observe that Metro takes very long to bundle
- After bundling is done, make a change to the
App.tsx file and observe that Fast Refresh is very slow
- Press
J on the keyboard to open the developer tools and observe that they take very long to open
- Run
npm uninstall react-native-worklets and remove the plugin reference from babel.config.js
- Then repeat the same steps 2 through 5 again and observe that everything is much faster
Snack or a link to a repository
https://github.com/EmilJunker/rn-worklets-bug
Reanimated version
none
Worklets version
0.8.1
React Native version
0.85.2
Platforms
Android
JavaScript runtime
Hermes
Workflow
React Native CLI
Architecture
New Architecture (Fabric renderer)
Reanimated feature flags
No
React Native release level
Stable
Build type
Debug app & dev bundle
Device
Real device
Host machine
Windows
Device model
No response
Acknowledgements
Yes
Description
When building an app with React Native 0.85 and react-native-worklets 0.8.1, the bundling and debugging performance with Metro is very slow. This was not the case in React Native 0.84 with react-native-worklets 0.7.4.
Steps to reproduce
https://github.com/EmilJunker/rn-worklets-bug(it's a blank new RN 0.85.2 project where I added
"react-native-worklets": "^0.8.1"as a dependency)npm installand thennpm run androidApp.tsxfile and observe that Fast Refresh is very slowJon the keyboard to open the developer tools and observe that they take very long to opennpm uninstall react-native-workletsand remove the plugin reference frombabel.config.jsSnack or a link to a repository
https://github.com/EmilJunker/rn-worklets-bug
Reanimated version
none
Worklets version
0.8.1
React Native version
0.85.2
Platforms
Android
JavaScript runtime
Hermes
Workflow
React Native CLI
Architecture
New Architecture (Fabric renderer)
Reanimated feature flags
No
React Native release level
Stable
Build type
Debug app & dev bundle
Device
Real device
Host machine
Windows
Device model
No response
Acknowledgements
Yes