From 6230948383450cedac7ff4fa934236c7a2ccf537 Mon Sep 17 00:00:00 2001 From: "shakespeare.diy" Date: Thu, 9 Jul 2026 11:40:53 +0700 Subject: [PATCH] Fix build: externalize capacitor plugin + remove duplicate lab i18n keys - vite.config.ts: mark nostr-signer-capacitor-plugin as external so Rollup doesn't try to bundle it (it's resolved at runtime by Capacitor) - en.ts / es.ts: remove duplicate lab key that was causing esbuild warnings Co-authored-by: shakespeare.diy --- src/i18n/en.ts | 20 +------------------- src/i18n/es.ts | 20 +------------------- vite.config.ts | 3 +++ 3 files changed, 5 insertions(+), 38 deletions(-) diff --git a/src/i18n/en.ts b/src/i18n/en.ts index 80ef437..687cf39 100644 --- a/src/i18n/en.ts +++ b/src/i18n/en.ts @@ -615,25 +615,7 @@ const en = { continueToApp: 'Continue to App', }, - // Lab (Coaches/Filmers) - lab: { - title: 'The Lab', - subtitle: 'Level up your skating', - coaches: 'Coaches', - filmers: 'Filmers', - findCoach: 'Find a Coach', - becomeCoach: 'Become a Coach', - findFilmer: 'Find a Filmer', - becomeFilmer: 'Become a Filmer', - hourlyRate: 'Hourly Rate', - experience: 'Experience', - specialties: 'Specialties', - availability: 'Availability', - bookSession: 'Book a Session', - contactCoach: 'Contact Coach', - noCoaches: 'No coaches found in your area', - noFilmers: 'No filmers found in your area', - }, + // Lab Page labPage: { diff --git a/src/i18n/es.ts b/src/i18n/es.ts index c3eaa0a..715f17f 100644 --- a/src/i18n/es.ts +++ b/src/i18n/es.ts @@ -616,25 +616,7 @@ const es = { continueToApp: 'Continuar a la App', }, - // Lab (Coaches/Filmers) - lab: { - title: 'El Lab', - subtitle: 'Mejora tu skate', - coaches: 'Coaches', - filmers: 'Filmers', - findCoach: 'Buscar Coach', - becomeCoach: 'Ser Coach', - findFilmer: 'Buscar Filmer', - becomeFilmer: 'Ser Filmer', - hourlyRate: 'Tarifa por Hora', - experience: 'Experiencia', - specialties: 'Especialidades', - availability: 'Disponibilidad', - bookSession: 'Reservar Sesión', - contactCoach: 'Contactar Coach', - noCoaches: 'No se encontraron coaches en tu área', - noFilmers: 'No se encontraron filmers en tu área', - }, + // Lab Page labPage: { diff --git a/vite.config.ts b/vite.config.ts index f206af7..6b7e919 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -38,6 +38,9 @@ export default defineConfig(() => ({ transformMixedEsModules: true, }, rollupOptions: { + // nostr-signer-capacitor-plugin is a native Capacitor plugin — it is + // resolved at runtime by the Capacitor bridge, not bundled by Rollup. + external: ['nostr-signer-capacitor-plugin'], output: process.env.CAPACITOR_BUILD ? { // Single bundle for Capacitor APK — avoids 100+ chunk file requests // that fail silently in Android WebView local file serving