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

Create StyleIconBase component for faster types #612

Merged
merged 2 commits into from Feb 13, 2019

Conversation

jacobwgillespie
Copy link
Member

This means that TypeScript can centralize the Styled Components types into a single component, which reduces the burden on the type checker (vs 4815 separate Styled Components). This may also speed up frontend rendering of multiple icons, not entirely sure.

This prepares for supporting custom SVG icons inside Styled Icons.

@jacobwgillespie jacobwgillespie changed the title Create StyleIcon base component for faster types Create StyleIconBase component for faster types Feb 13, 2019
@jacobwgillespie
Copy link
Member Author

This cuts CI build time in half! 😱

@jacobwgillespie jacobwgillespie merged commit 65ac6e2 into master Feb 13, 2019
@jacobwgillespie jacobwgillespie deleted the styled-icon-base-component branch February 13, 2019 05:45
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.

None yet

1 participant