-
Notifications
You must be signed in to change notification settings - Fork 975
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wallet-adapter-torus uses require('stream')
and require('crypto')
#584
Comments
Wallet Adapter doesn't bundle anything though. Bundling (and accordingly, polyfilling) is left to applications. Here's an example of how Create React App can be configured to do this: It sounds like, arguably, |
I think this is the same issue as the #554 here is my repo with cra+wallet-adapter-torus, you can refer this as well |
You can refer to this boilerplate for configuration using |
It sounds like it's up to Torus to bundle polyfills or eliminate the need for them from their browser-bound code. |
Describe the bug
Bundling @solana/wallet-adapter-wallets fails because wallet-adapter-torus references
require('stream')
andrequire('crypto')
.I'll file an issue against torusresearch/solana-embed - just wanted to mention the issue here as well.
To Reproduce
Steps to reproduce the behavior:
esbuild index.tsx --bundle --sourcemap --outfile=src/assets/index.js
Expected behavior
wallet-adapter-torus includes dependencies to polyfill
stream
andcrypto
.The text was updated successfully, but these errors were encountered: