Giter Site home page Giter Site logo

gilg4mesh / web3.js-browser Goto Github PK

View Code? Open in Web Editor NEW

This project forked from andy0130tw/web3.js-browser

0.0 1.0 0.0 2.87 MB

An intent to bundle a standalone version of web3.js for browsers.

License: GNU Lesser General Public License v3.0

JavaScript 100.00%

web3.js-browser's Introduction

web3.js-browser

jsdelivr
NPM

An intent to bundle a standalone version of web3.js for browsers, because web3.js SHOULD have a 2.x minified version for dApp developers.

FYI: web3.js#2623.

tl;dr

It is recommended to pin this bundle to some specific version, because web3.js varies dramatically across versions. You may waste much time debugging on some inconsistencies like me if used naively.

Build

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

Web3.js caveats

The author was not careful enough to mistake v2.0.0-alpha for v2.0.0-alpha.1. To reduce confusion, this project deserves its own semantics versioning. See the releases page for details.

Scrypt

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.

web3.js-browser's People

Contributors

andy0130tw avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.