An intent to bundle a standalone version of web3.js for browsers.
git submodule init
git submodule update
# configure web3
cd web3.js
npm install
npm run build # build web3 packages; we only need *.esm.js
cd ..
# build web3.js
yarn
npm run build
This bundle current follows v2.0.0-alpha.1. Current implementation deprecates scrypt
dependency in higher versions of Node.js, likely because its lack of security. If you see the following message, it can be safely ignored.
WARNING in ./web3.js/packages/web3-eth-accounts/dist/web3-eth-accounts.esm.js
Module not found: Error: Can't resolve 'scrypt' in '/.../web3.js-browser/web3.js/packages/web3-eth-accounts/dist'
Please refer to this commit for details.