react-native-gesture-handler icon indicating copy to clipboard operation
react-native-gesture-handler copied to clipboard

Very large code size on web

Open edkimmel opened this issue 2 years ago • 1 comments

Description

Screenshot 2023-11-24 at 5 19 19 PM

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

edkimmel avatar Nov 24 '23 22:11 edkimmel

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?

github-actions[bot] avatar Nov 24 '23 22:11 github-actions[bot]