DEV Community

Discussion on: How we reduced our initial JS/CSS size by 67%

goenning profile image
Guilherme Oenning Author

We're not using dynamic imports on react-icons, so Webpack can still tree shake it. Our react-icons is already on v3 and our bundles only have the SVG for the icons we use. Have you had a different outcome with this setup?

lecstor profile image
Jason Galea

interesting, maybe there are situations where it will work and I read too much into this..
I was definitely having issues and I guess I assumed this applied across the board (especially as we're doing code splitting on routes in the main component).