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 <assistant@shakespeare.diy>
This commit is contained in:
parent
8256f05ca8
commit
6230948383
3 changed files with 5 additions and 38 deletions
|
|
@ -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: {
|
||||
|
|
|
|||
|
|
@ -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: {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue