| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
PatternFly-React preview: https://patternfly-react-pr-3448.surge.sh |
Sorry, something went wrong.
|
@Hyperkid123 thanks for putting in this PR, it looks good to me but I am going to leave open for @redallen to review when he's back in office as well before merging. |
Sorry, something went wrong.
Codecov Report
@@ Coverage Diff @@
## master #3448 +/- ##
=========================================
+ Coverage 67.09% 67.1% +<.01%
=========================================
Files 903 903
Lines 25471 25472 +1
Branches 2251 2251
=========================================
+ Hits 17091 17092 +1
Misses 7342 7342
Partials 1038 1038
Continue to review full report at Codecov.
|
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
|
@evwilkin I am doing more testing and this will have to be applied to all PF4 extensions using icons. I will do that now. I also have some updates regarding the react-core transform imports. I will post some notes and possible solutions to the issues thread. |
Sorry, something went wrong.
|
Your changes have been released in:
Thanks for your contribution! 🎉 |
Sorry, something went wrong.
|
This change is good for CJS bundles. If we are to ever switch to building react-core with Typescript we'll have to change all icon import paths manually to import directly from react-icons' dist. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
What: Addresses #3268
Added transform-imports for react-core to use direct paths to react-icons dependencies. This change marginally improves build sizes of libraries which depends on a library that is also using react-core package icons and then is consumed by some app.
Bundle size of an app using just PF4 Modal from a third-party library was reduced from 513kB to 27Kb
Right now, if you use any component with an icon from react-icons (Modal for example), it sometimes bundles all react-icons even if not used.
A reproducible example can be found here: https://github.com/Hyperkid123/pf-core-icons-deps
Detailed info can be found in #3268