We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
esbuild
I have a simple client.js
client.js
import Wallet from '@project-serum/sol-wallet-adapter';
And create a bundle using
esbuild ./client.js --bundle --outfile=./build/js/client.js
When including the bundled file on a simple page I am getting a bunch of bundling issues and can not use the output bundle.
Uncaught ReferenceError: process is not defined
The text was updated successfully, but these errors were encountered:
The issue is in the secp256k1 dependency which uses elliptic in the browser. When requiring elliptic directly in https://github.com/solana-labs/solana-web3.js/blob/171c73ee938c2bd12f0a0785e52d076c3f58649d/src/secp256k1-program.ts#L3 the build passes and I can connect to the wallet.
secp256k1
elliptic
Sorry, something went wrong.
I have opened a new issue here solana-labs/solana-web3.js#1025
No branches or pull requests
I have a simple
client.js
And create a bundle using
When including the bundled file on a simple page I am getting a bunch of bundling issues and can not use the output bundle.
The text was updated successfully, but these errors were encountered: