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

Tree-shaking support #162

Open
Pikachews opened this issue Sep 21, 2024 · 0 comments
Open

Tree-shaking support #162

Pikachews opened this issue Sep 21, 2024 · 0 comments

Comments

@Pikachews
Copy link

Pikachews commented Sep 21, 2024

It appears that this package does not support tree-shaking, as all of the middleware appears in the output webpack bundle even if only a subset are used:

import { batchMiddleware, errorMiddleware, RelayNetworkLayer, urlMiddleware } from "react-relay-network-modern/lib";

...

image

@Pikachews Pikachews changed the title Bundle size doubled in 6.2.2 + tree-shaking Tree-shaking support Sep 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant