Coder Social home page Coder Social logo

Comments (5)

martindale avatar martindale commented on June 2, 2024

This is addressed in #22. cc: @maraoz

from bitauth.

braydonf avatar braydonf commented on June 2, 2024

Okay, v0.8 may help with this, however it looks like building a bundle with specific modules hasn't been included yet, so I'm unfortunately getting the reverse result.

Here are my results:


With Bitcore 0.1.37 ( running node browser/build -a <module> ):

lib/Key -> 261K
lib/SINKey -> 266K
lib/SIN -> 265K
util/util -> 261K

All of the above -> 266K


With Bitcore 0.8 ( running browser/build):
All modules -> 443K

from bitauth.

martindale avatar martindale commented on June 2, 2024

Can you report this in Bitcore? This is an issue with BitAuth's dependencies, not BitAuth itself. We'll close this issue when it's resolved in Bitcore and subsequently utilized here.

from bitauth.

braydonf avatar braydonf commented on June 2, 2024

Following the how scripts/make-dist is working the file size should be a total of 318K, 266K for the bitcore bundle and 52K for BitAuth. However the end result file dist/bitauth.browser.js is nearly three times this. While bitcore is still the larger portion, and can be reduced, there is something off here.

from bitauth.

braydonf avatar braydonf commented on June 2, 2024

Interesting, the command below produces a 37K file:

browserify lib/bitauth.js -s bitauth -x buffertools -i bitcore -o dist/bitauth.browser.build.js

And running this command produces a 469K file:

node_modules/.bin/browserify lib/bitauth.js -s bitauth -x buffertools -i bitcore -o dist/bitauth.browser.build.js

from bitauth.

Related Issues (20)

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.