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: { optimizeDeps: {
exclude: ['@lightninglabs/lnc-web'], exclude: ['@lightninglabs/lnc-web'],
}, },
build: { build: {
// Strip console.log/warn/debug in production (keeps console.error for real errors) // Strip console.log/warn/debug in production (keeps console.error for real errors)
minify: 'esbuild', minify: 'esbuild',
@ -43,6 +44,7 @@ export default defineConfig(() => ({
// that fail silently in Android WebView local file serving // that fail silently in Android WebView local file serving
manualChunks: undefined, manualChunks: undefined,
inlineDynamicImports: true, inlineDynamicImports: true,
external: ['nostr-signer-capacitor-plugin'],
} : { } : {
// Split large vendor libraries into separate cacheable chunks. // Split large vendor libraries into separate cacheable chunks.
// Users only re-download a chunk when that specific library updates. // Users only re-download a chunk when that specific library updates.