diff --git a/vite.config.ts b/vite.config.ts index cb5f9d9..f206af7 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -38,7 +38,12 @@ export default defineConfig(() => ({ transformMixedEsModules: true, }, rollupOptions: { - output: { + output: process.env.CAPACITOR_BUILD ? { + // Single bundle for Capacitor APK — avoids 100+ chunk file requests + // that fail silently in Android WebView local file serving + manualChunks: undefined, + inlineDynamicImports: true, + } : { // Split large vendor libraries into separate cacheable chunks. // Users only re-download a chunk when that specific library updates. manualChunks(id) {