bs58 depends on safe-buffer, which depends on buffer, which is a bit
of a pain to bundle as it is a built-in node module. You'd typically
replace buffer with a browser polyfill in your build system but:
a) this is somewhat a pain to setup for simple apps
b) the polyfill is way more than we need (6kb), so we prefer to bundle
our minimal buffer replacement that uses Uint8Array. Since it is
a transitive dependency, we need to bundle bs58 and all of its
transitive dependencies (2.5kb) as well, so if users of hydrogen-sdk
also use any of these, they'll be double included in their bundle.
it's missing still:
- non-css assets like the download sandbox and the olm worker aren't written for some reason
- the es and cjs lib.js entry points end up in assets with a hash for some reason
- in these entry files, apart from our exports, something is adding an import statement for every import that was found in the tree
- all assets are hashed even though the config tries to disable that
- tests are included