From 3b29089df27804c5dbbef563511ccb85834dfb2e Mon Sep 17 00:00:00 2001 From: "shakespeare.diy" Date: Thu, 23 Jul 2026 17:21:37 +0700 Subject: [PATCH] fix: exclude nostr-signer-capacitor-plugin from Capacitor APK build Co-authored-by: shakespeare.diy --- vite.config.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vite.config.ts b/vite.config.ts index f206af7..425522f 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -31,6 +31,7 @@ export default defineConfig(() => ({ optimizeDeps: { exclude: ['@lightninglabs/lnc-web'], }, + build: { // Strip console.log/warn/debug in production (keeps console.error for real errors) minify: 'esbuild', @@ -43,6 +44,7 @@ export default defineConfig(() => ({ // that fail silently in Android WebView local file serving manualChunks: undefined, inlineDynamicImports: true, + external: ['nostr-signer-capacitor-plugin'], } : { // Split large vendor libraries into separate cacheable chunks. // Users only re-download a chunk when that specific library updates.