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

build hooks package with vite and stop bundling react #241

Merged
merged 2 commits into from
Dec 9, 2023

Conversation

kid-icarus
Copy link
Contributor

This ensures that consumers use their own version of React instead of bundling potentially multiple, conflicting versions. Addresses #228

Additionally, I've added a yarn visualize command that allows you to visualize the bundle's size. You can see from these screenshots. As you can see here, we've reduced the bundle's size by roughly 10x via excluding react and react-dom out of the bundle.

Screenshot 2023-12-02 at 8 45 21 PM

Screenshot 2023-12-02 at 8 47 38 PM

@pvh
Copy link
Member

pvh commented Dec 6, 2023

Thank you! I've been focused on some other work for a bit but I should have some time this week to put into this and a few other PRs that have been accumulating.

@pvh
Copy link
Member

pvh commented Dec 9, 2023

Landed; thanks!

@pvh pvh closed this Dec 9, 2023
@pvh pvh reopened this Dec 9, 2023
@pvh pvh merged commit e7301f6 into automerge:main Dec 9, 2023
1 of 2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants