Introducing the nostr-tools Compiler! it will compile your JS code, fixing your bugs and outputting more JS code that then you pass to your bundler, minifier, modularizer.