Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Very large code size on web #2683

Open
edkimmel opened this issue Nov 24, 2023 · 1 comment
Open

Very large code size on web #2683

edkimmel opened this issue Nov 24, 2023 · 1 comment

Comments

@edkimmel
Copy link

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

Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants