cal.com icon indicating copy to clipboard operation
cal.com copied to clipboard

Reduce bundle size by importing single icons at a time

Open JeroenReumkens opened this issue 2 years ago • 1 comments

What does this PR do?

This PR reduces the bundle size (mainly in benefit to the Atoms later), but importing single icons at a time. Difference is over 100KB for the Atom.

Before:

CleanShot 2023-01-23 at 09 00 11@2x

After:

CleanShot 2023-01-23 at 09 00 41@2x

Environment: Staging(main branch)

Type of change

  • [x] Chore (refactoring code, technical debt, workflow improvements)

How should this be tested?

The result should be exactly the same, since only the path of icons has been updated from icons.[icon] to [icon].

JeroenReumkens avatar Jan 23 '23 15:01 JeroenReumkens

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

Name Status Preview Comments Updated
cal ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Jan 23, 2023 at 11:03PM (UTC)
cal-com-storybook ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Jan 23, 2023 at 11:03PM (UTC)

vercel[bot] avatar Jan 23 '23 15:01 vercel[bot]