diff options
| author | Adam Soltys <[email protected]> | 2026-08-26 12:06:00 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-08-26 12:06:00 -0700 |
| commit | 0427a1b02c21fd5fa9f5df8a86e435dbb84a8451 (patch) | |
| tree | 32e5601682e6f65e46a8811cfc2ea7184ba17119 /tools | |
| parent | 6be9a45c4d085988c8bfaf210df762dbc83c8ab1 (diff) | |
| download | coinosv3-0427a1b02c21fd5fa9f5df8a86e435dbb84a8451.tar.gz coinosv3-0427a1b02c21fd5fa9f5df8a86e435dbb84a8451.zip | |
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-<hash>.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
Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_019eA8JRq9Wr7z2fRQk99HLi
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/nostr-login-test.js | 3 |
1 files changed, 3 insertions, 0 deletions
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'; |
