79719084

Date: 2025-07-29 18:41:20
Score: 0.5
Natty:
Report link

Eventually, the only issue was that the Vite configuration section I added was in the wrong place.

So now I had at lib vite.config:

rollupOptions: {
        external: ['react', 'react-dom'],
}

and in app layer vite.config:


 resolve: {
      dedupe: ['react', 'react-dom', '@emotion/react', '@emotion/styled', '@mui/material', '@mui/system'],
 },

That's a working configuration for me

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Roma Borodov