inertia icon indicating copy to clipboard operation
inertia copied to clipboard

Bundle growing strangely

Open WillRy opened this issue 1 year ago • 0 comments

Version:

  • @inertiajs/vue3 version: 1.0.6

Describe the problem:

With each new page created, the app.js bundle increases even using code splitting. With 33 pages created, it is enough to increase 30kb in app.js. I believe that in large applications this will generate scalability problems, in a short time it will exceed 500kb in app.js

Is this a bug? Or is this normal behavior due to the fact that app.js has mapping for importing pages and their other dependencies?

In my application there was a 30kb difference between having 1 page or 33 pages.

Thanks for everything, sorry for any English mistakes, it's not my native language

Steps to reproduce:

Configure code splitting and create new pages with multiple components inside

WillRy avatar Nov 30 '23 02:11 WillRy