webpack-contrib / webpack-bundle-analyzer

Webpack plugin and CLI utility that represents bundle content as convenient interactive zoomable treemap
MIT License
12.58k stars 488 forks source link

Inlined source maps add hidden size, causing confusion #392

Closed msafi closed 1 year ago

msafi commented 4 years ago

In my webpack config I had devtool set to inline-source-map. So the inlined source maps were included in the final bundle.js. I didn't know that, so when Webpack Bundle Analyzer was telling me that the highest level code container in my bundle is 500KB but right above it the bundle.js size is 2MB, I was very confused.

It would be useful to help the user know what's going on in these cases.