GithubHelp home page GithubHelp logo

Comments (11)

rickmed avatar rickmed commented on May 13, 2024 4

5 stars for this project.

Can I suggest:

  • Optionally having a list of modules for a grand total.
  • Adding an estimate cost for unpacking/parsing js (specially useful on mobile devices).

from bundlephobia.

joshgillies avatar joshgillies commented on May 13, 2024 3

It would be cool if this project offered a way to compare two (or more?) packages.

from bundlephobia.

evan-scott-zocdoc avatar evan-scott-zocdoc commented on May 13, 2024 1

Evaluate using babili vs. the current UglifyJS harmony minifier. Bundling some packages fail due to usage of ES6/7 syntax unsupported by Uglify JS.

I'd recommend using uglify-es instead, as it handles the newer syntaxes.

from bundlephobia.

pastelsky avatar pastelsky commented on May 13, 2024

Hey, @rickmed. Could you explain what you mean by your first point? I did initially think of allowing users to add multiple packages in a single query, but bundling is a CPU intensive process, and Heroku would most probably time out.

Also I did think of adding parsing cost, but calculating so would require a dedicated machine so that times of different packages are comparable and independent of hosting environment and server load.

from bundlephobia.

rickmed avatar rickmed commented on May 13, 2024
  1. I have no idea how this works, is it possible to make it as a static page?
  2. I'm confused. How are you planning to calculate the parsing cost?

from bundlephobia.

pastelsky avatar pastelsky commented on May 13, 2024
  1. This cannot be a static page, as the calculations, bundling, minifying of modules happen on the server.
  2. A simple way to calculate the parse cost is to measure time taken to do a eval on the minified package code. But it would have to be done on an actual mobile device for good results.

from bundlephobia.

rickmed avatar rickmed commented on May 13, 2024
  1. I'm pretty sure it can be done but most likely would change the whole app -just throwing the idea out there...
  2. That sounds good. You could throttle CPU in devTools to get an estimate as well.

from bundlephobia.

jpdevries avatar jpdevries commented on May 13, 2024

👍 for a feature request to somehow support multiple packages. Would be great to be able to do something like [email protected],[email protected],rest of my packages... in your projects README.

Although there is the webpack visualizer for something similiar
https://chrisbateman.github.io/webpack-visualizer/

from bundlephobia.

zincli avatar zincli commented on May 13, 2024

How about supporting package sets and let users make comparison for their different strategy

from bundlephobia.

pastelsky avatar pastelsky commented on May 13, 2024

A new version is out now - https://github.com/pastelsky/bundlephobia/releases/tag/v1.0.1

Solves some of the concerns noted above. Also, support for batch requests is possible to implement with the current architecture.

from bundlephobia.

pastelsky avatar pastelsky commented on May 13, 2024

Discounting a few quirks, Bundlephobia is pretty usable now. Closing this. Feature requests to go into a different issue.

from bundlephobia.

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.