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

Use explicit imports for MUI icons #557

Merged
merged 1 commit into from Jan 20, 2023

Conversation

oo-bldrs
Copy link
Contributor

PR to use an explicit import for individual MUI icons.

Without this change, Storybook builds take an incredibly long time on Netlify as it bundles every, single, icon. This results in 12K+ ES6 modules being bundled. This causes build time to explode, especially if we get unlucky and land on a slow build agent.

After this change, the total number of ES6 modules bundled chops down to ~2,800.

@netlify
Copy link

netlify bot commented Jan 20, 2023

Deploy Preview for bldrs-share ready!

Name Link
🔨 Latest commit
🔍 Latest deploy log https://app.netlify.com/sites/bldrs-share/deploys/63cac3b48e7c2c6de72adb02
😎 Deploy Preview https://deploy-preview-557--bldrs-share.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Copy link
Member

@pablo-mayrgundter pablo-mayrgundter left a comment

Choose a reason for hiding this comment

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

Oh wow, good catch! Guess it works like mui imports for individual classes. Good to know.

@oo-bldrs oo-bldrs merged commit 2a3e723 into bldrs-ai:main Jan 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Completed
Development

Successfully merging this pull request may close these issues.

None yet

2 participants