Hi,
you are using material - ui in react typescript and having trouble with the performance? Well i stumpled upon the same issue.
The build takes...
For further actions, you may consider blocking this person and/or reporting abuse
You can give a try to this babel plugin,
It should convert automatically
to
This applies not only to ts or even react but in general to js imports. First time you have imported and compiled whole icons pckg and second time only this two icons.
Hi Mateusz,
thanks for clariyfying that this principle can be transfered to javascript. we should keep it in mind ;-)
Many thanks! I had the same issue with imports of styled-icons and react-use, got dramatic performance increase after refactoring to proper import
glad to halp out ;-)
This is great but I wonder if there is some way of finding out which imports are causing these slow builds. Maybe its just trial and error?