-
Notifications
You must be signed in to change notification settings - Fork 13
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
Generate React component for each icon #90
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and working in EW. I don't think we have anyone depending on the old assets/web/icons/*.svg files that were deleted, but let's still count this as a breaking change.
src/@types/index.d.ts
Outdated
declare module "prettier" { | ||
export interface Options {} | ||
} | ||
|
||
declare module "svgo" { | ||
export interface Config {} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could do with a comment like that in global.d.ts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Han, that's a leftover, I first tried there before moving things to global.d.ts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rebased and removed that
This should help with tree-shaking in downstream packages
This is on top of #89
This generates a proper React component for each icon.
This means that downstream packages can consume them directly without having to setup svgr locally.
The reason we want to do this is: