Don't understand the boxes :) #558
-
|
Not sure if this is a webpack-bundle-analyzer thing, or if it's just happening because the statistics returned by Webpack is that way. Anyways, here is my output: I'm wondering why node_modules is represented twice. I only have a single entry point in my webpack configuration. Why isn't e.g. mobx.esm.js under node_modules to the left? Because node_modules is represented twice, I'm guessing the size calculation is incorrect for that one? Kind regards, Emil |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I don't think that size calculation is incorrect here It looks like the contents of It looks like the webpack-bundle-analyzer shows you that the |
Beta Was this translation helpful? Give feedback.

I don't think that size calculation is incorrect here☺️
It looks like the contents of
node_modulesdirectory in those boxes are different. The one on the right shows mobx, lodash andyup/eswhile the one on the right hasreact-dom,tippy.js,styled-componentsand some other modules. So they're different to what is shown on the right side box.It looks like the
index.tsxfile and its dependencies have been concatenated inside it and you're viewing the chart with the "Show content of concatenated modules" checkbox enabled. If you'd uncheck that, you should seemobx.esm.jsand the othern…