react-native-gesture-handler
react-native-gesture-handler copied to clipboard
Very large code size on web
Description
react-native-gesture-handler is a very heavy dependency on web.
At a glance, both the web and native gesture / handler implementations are being included. I believe that by wrapping the underlying gestures in the GestureObject export, tree-shaking has been effectively disabled as well.
Steps to reproduce
Include react-native-gesture-handler on web.
Snack or a link to a repository
n/a
Gesture Handler version
2.9.0
React Native version
0.71
Platforms
Web
JavaScript runtime
None
Workflow
None
Architecture
None
Build type
None
Device
None
Device model
No response
Acknowledgements
Yes
Hey! 👋
The issue doesn't seem to contain a minimal reproduction.
Could you provide a snack or a link to a GitHub repository under your username that reproduces the problem?