nostr:npub1q3sle0kvfsehgsuexttt3ugjd8xdklxfwwkh559wxckmzddywnws6cd26p Quick question: do you know the best way to bundle/build nostrify to a plain ESM module for use in the browser with import maps? 🤔

I tried `deno bundle`, but it's deprecated and also fails with npm specifiers in the dependencies...

Reply to this note

Please Login to reply.

Discussion

I think your best bet for now is probably to use Vite in a Node project (instead of Deno), and use Nostrify like this:

npx jsr add @nostrify/nostrify

It may be possible to get it working with Deno with Deno 2's release candidate, but I don't know how exactly to set up Vite with it.

Thanks!

I had already tried esbuild and deno_emit, but no luck so far. If I find a solution for my case, I'll open a docs PR to share it.