Giter Site home page Giter Site logo

Nothing happens? about bundle-buddy HOT 16 CLOSED

samccone avatar samccone commented on August 23, 2024 1
Nothing happens?

from bundle-buddy.

Comments (16)

FezVrasta avatar FezVrasta commented on August 23, 2024 7

I'm 100% sure my code base is full of... emh, shit.

But anyway, I would expect to be able to see the charts? (to know the size of the parts of code etc)

from bundle-buddy.

zdrummond avatar zdrummond commented on August 23, 2024 4

@samccone I will quickly chime-in; I know Bundle Buddy is about duplication, but it also feels like your base UI could be easily adapted to be a better source-map-explorer. I am glad I don't have dups, but dups is only one part in the path to lose weight. One tool to do it all (or at least more) would be nice, and it seems like you are close to that.

from bundle-buddy.

samccone avatar samccone commented on August 23, 2024 3

hey @montogeek, @susielu and I have been working up some ideas on how to do this and how to create a valuable viz for bundles.

Thanks for your interest! we will be sure to file some mocks when we arrive at something.

from bundle-buddy.

montogeek avatar montogeek commented on August 23, 2024 2

I would like to see this project become a better source-map-explorer, maybe adding a flag or showing a source map visualization even if there is not duplication, this is too good to dont use it as a bundle analyzer/visualizer/explorer.

Any plans @samccone ? I would gladly help!

from bundle-buddy.

samccone avatar samccone commented on August 23, 2024 1

Hey all, here is the design document for the next addition to bundle-buddy
https://docs.google.com/document/d/1ycGVBJmwIVs34yhC0oTqv_WH5f0fs2SAFmzyTiBK99k/edit#

Comments and thoughts are welcome.

from bundle-buddy.

samccone avatar samccone commented on August 23, 2024

Hey @FezVrasta no bundle duplication is a good thing :) it means bundle buddy has nothing to really show you.

In this case what would you like bundle-buddy to show?

cc @susielu

from bundle-buddy.

susielu avatar susielu commented on August 23, 2024

Would you be able to share the repo w/us so we could use it as an example to test this case with?

from bundle-buddy.

samccone avatar samccone commented on August 23, 2024

related #25

from bundle-buddy.

FezVrasta avatar FezVrasta commented on August 23, 2024

nope unfortunately I can't share it 🙁

from bundle-buddy.

samccone avatar samccone commented on August 23, 2024

Hey @zdrummond I totally agree. This has been something @susielu and I have talked about tackling .. With the goal being to make bundle-buddy a one-stop-shop for exploring exactly is in your bundle.

Thanks!

from bundle-buddy.

stereobooster avatar stereobooster commented on August 23, 2024

Same here. I will try to create simple example, meantime I will explain. I have create-react-app application with following code:

import Loadable from "react-loadable";
const PhoneAsync = Loadable({
  loader: () => import("react-phone-number-input"),
  loading: () => <span>Loading the phone number</span>
});

webpack creates two files: main.js and chunk.js. Both of those files contain copy of ReactDOM because of this issue catamphetamine/react-phone-number-input#98 (or source-map-explorer is lying)

UPD: I'm not able to reproduce it anymore. Probably some kind of glitch in Webpack

from bundle-buddy.

catamphetamine avatar catamphetamine commented on August 23, 2024

Both of those files contain copy of ReactDOM because of this issue catamphetamine/react-phone-number-input#98

To clarify for others: this is not an issue of any sort.
react-dom gets bundled anyway in a web browser.

from bundle-buddy.

stereobooster avatar stereobooster commented on August 23, 2024

yes this is an issue, It delivers two copies of of ReactDOM

from bundle-buddy.

catamphetamine avatar catamphetamine commented on August 23, 2024

yes this is an issue, It delivers two copies of of ReactDOM

this is an issue, but not the issue you reported.
it's an issue with your bundling process.

from bundle-buddy.

stereobooster avatar stereobooster commented on August 23, 2024

yes and this is issue tracker of the tool which is analyse bundler output, which should show issues of bundler.

from bundle-buddy.

stereobooster avatar stereobooster commented on August 23, 2024

Existing tools for understanding a single bundle

Add this to the list https://webpack.github.io/analyse

User questions

What introduced this dependency? Example: I see lodash.js in my bundle, but I haven't added it. It appears that LibX uses it, and LibX required by MobX.


Also, I wonder if it is possible to implement library which will recommend improvements like:

from bundle-buddy.

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.