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

perf: bundle used react-feather icons only #121

Merged
merged 1 commit into from
Oct 3, 2023

Conversation

chrisvxd
Copy link
Member

@chrisvxd chrisvxd commented Oct 2, 2023

Moving to dev dependencies causes tsup to bundle the external dependencies where necessary.

This increases the direct bundle size by 72KB but should drop the 328KB react-feather dependency.

Before
CJS dist/index.js 94.00 KB

After
CJS dist/index.js 166.42 KB

Closes #118

@vercel
Copy link

vercel bot commented Oct 2, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
puck-demo ✅ Ready (Inspect) Visit Preview Oct 2, 2023 10:55am

Copy link
Member

@monospaced monospaced left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🪶

@chrisvxd chrisvxd merged commit f4b0563 into main Oct 3, 2023
2 checks passed
@chrisvxd chrisvxd deleted the 118-bundle-react-feather-icons branch October 3, 2023 08:27
@chrisvxd chrisvxd mentioned this pull request Oct 3, 2023
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.

React Feather not treeshaking correctly
2 participants