Reducing bundle size
The bundle size of my Refine app built with Next.js and Material UI is very high and the app is very slow. I'm looking for ways to reduce the bundle size. This is the bundle:
As you can see
One thing I tried was to remove resource page components to see the result:
The fact that I have to import all resource pages in the
As you can see
_app.tsx is very heavy and it effects the whole app performance. How can I reduce it?One thing I tried was to remove resource page components to see the result:
The fact that I have to import all resource pages in the
_app.tsx file has a significant effect to bundle size and speed of the app. Is there a way to fix it?