Vite Plugin
Thelazy option in the pages shorthand controls how page components are loaded. It defaults to true.
Manual Vite
You may configure code splitting manually using Vite’simport.meta.glob() function when not using the Inertia Vite plugin. Pass { eager: true } to bundle all pages, or omit it to lazy-load them.
Webpack
To use code splitting with Webpack, enable dynamic imports with a Babel plugin:.babelrc file in your project with the following configuration:
resolve callback in your app’s initialization code to use import instead of require.