From 0427a1b02c21fd5fa9f5df8a86e435dbb84a8451 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 26 Aug 2026 12:06:00 -0700 Subject: The page arrives light and paints at once: index.html shrinks to 46KB with a static boot shell baked in — brand row, and the profile frame when the path names one — while the 789KB bundle moves to a content-addressed app-.js the browser keeps (a repeat visit re-downloads kilobytes, not the app); the nostr-tools barrel import goes subpath, and the NIP-46 signer client ships as its own lazy file fetched on first bunker login MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_019eA8JRq9Wr7z2fRQk99HLi --- tools/nostr-login-test.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tools') diff --git a/tools/nostr-login-test.js b/tools/nostr-login-test.js index 0440333..468ffb4 100644 --- a/tools/nostr-login-test.js +++ b/tools/nostr-login-test.js @@ -77,6 +77,9 @@ console.log('\n[bunker (NIP-46) wiring]'); { const { bunkerSigner } = await import('../src/nostr-login.js'); const { parseBunkerInput } = await import('nostr-tools/nip46'); + // outside a browser the lazy dist/nip46.js can't be script-injected — + // preset the module the way the loader's test seam expects + globalThis.__nip46 = await import('nostr-tools/nip46'); // a real Amethyst-issued address shape const uri = 'bunker://81029479a85c3f2f0c8d7ca9fbd92923942e2254e873d93c1c7095f068c83a85' + '?relay=wss%3A%2F%2Frelay.damus.io%2F&relay=wss%3A%2F%2Fnos.lol%2F&secret=4wdWEsG7RDzCaBt6p9ovvk0uMX6ENh2J'; -- cgit v1.2.3