Closed techport-om closed 1 year ago
Hey @techport-om ! Thanks for reporting this issue. Generally speaking this goes a bit beyond the scope of this package and has more to do with your webpack-encore/vite config. For encore you should follow this guide: https://symfonycasts.com/screencast/webpack-encore/code-splitting
Let me know if it helped :-)
Hey @eidellev
I appreciate the swift response. In addition, i am not using vite at all, i am using the built in adonisjs encore.
@techport-om have you managed to solve this issue? I am closing this for now, but feel free to re-open if there are further issues.
Issue: Currently, I am running AdonisJS with InertiaJS-AdonisJS and have encountered an issue where the entire application is being loaded as a single large component. This has resulted in performance and maintainability concerns, as the app becomes harder to manage and load times are negatively impacted.
Steps to reproduce:
Expected behavior: Each page or route in the application should load its respective components separately, promoting modularity and improving performance.
Actual behavior: The entire application is being loaded as one big component, which affects the performance and maintainability of the application. Below, is an actual production screenshot of the loaded app.![image](https://github.com/eidellev/inertiajs-adonisjs/assets/133317769/8ee72769-650e-4148-be60-2431d08cf07b)