Remove external: nostr-signer-capacitor-plugin from vite config

Plugin is now properly installed and registered via cap sync.
It must be bundled by Rollup, not treated as external.

Co-authored-by: shakespeare.diy <assistant@shakespeare.diy>
This commit is contained in:
shakespeare.diy 2026-07-09 12:14:09 +07:00
parent 646c4f7761
commit 543b7d32c0

View file

@ -38,9 +38,6 @@ 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