Comments (11)
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.
It would be cool if this project offered a way to compare two (or more?) packages.
from bundlephobia.
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.
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.
- I have no idea how this works, is it possible to make it as a static page?
- I'm confused. How are you planning to calculate the parsing cost?
from bundlephobia.
- This cannot be a static page, as the calculations, bundling, minifying of modules happen on the server.
- 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.
- I'm pretty sure it can be done but most likely would change the whole app -just throwing the idea out there...
- That sounds good. You could throttle CPU in devTools to get an estimate as well.
from bundlephobia.
👍 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.
How about supporting package sets and let users make comparison for their different strategy
from bundlephobia.
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.
Discounting a few quirks, Bundlephobia is pretty usable now. Closing this. Feature requests to go into a different issue.
from bundlephobia.
Related Issues (20)
- Package suggestion: valibot for `JSON schema validation`
- Package suggestion: ky for `HTTP client libraries for Node.js`
- Package suggestion: <react muliti carousel> for `Vanilla JS Sliders & Carousels`
- data URI is reported as a missing dependency
- [Improvement] Calulate package size from bin property
- 502 server when querying any package HOT 2
- Package suggestion: lexical for `Rich Text Editors`
- Package suggestion: `@react-hookz/deep-equal` for `Deep Equality Check`
- Failed to build this package with with no production dependency project
- Package suggestion: <package-name> for `Promise polyfills`
- Package suggestion: <victory> for `General purpose Charting libraries`
- Server down HOT 4
- [email protected] suggestion: <package-name> for `Vanilla JS Sliders & Carousels`
- BuildError: @radix-ui/react-dialog fails to build
- Package suggestion: yrel for `JSON schema validation`
- Package suggestion: <package-name> for `HTTP client libraries for Node.js`
- BuildError: @hellhub-collective/cli fails to build
- Package suggestion: [email protected] for `JSON schema validation`
- Package suggestion: <package-name> for `Tooltip Libraries`
- [email protected]: Ignoring the size of missing dependencies .. and .. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bundlephobia.