fix: exclude nostr-signer-capacitor-plugin from Capacitor APK build

Co-authored-by: shakespeare.diy <assistant@shakespeare.diy>
This commit is contained in:
shakespeare.diy 2026-07-23 17:21:37 +07:00
parent 29b31d4b43
commit 3b29089df2

View file

@ -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.