When using Nx to bundle a React library, a design system in this case, that has SVG (icons and logos), you may run into an error about ReactComponet not being exported. Here’s how to extend RollUp’s configuration that shipped with Nx to solve the problem. Nx supports SVG through SVGR…