doesdev / rollup-plugin-analyzer

Mad metrics for your rollup bundles, know all the things

Home Page:http://rollup-plugin-analyzer.doesdev.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorrect bundle size reported

slavafomin opened this issue · comments

Hello!

Thank you for this great plugin!

However, I'm encountering a situation where bundle size is reported incorrectly by the plugin.

In filesystem generated bundle takes 11 KB:

$ stat ./dist/index.esm.js 
  File: ./dist/index.esm.js
  Size: 11075     	Blocks: 24         IO Block: 4096   regular file

While plugin shows it as:

bundle size:    17.861 KB
original size:  14.597 KB
code reduction: 0 %

Do you know what could be causing this? Thanks!


  • rollup@1.32.1
  • rollup-plugin-filesize@6.2.1

Thanks for the report, definitely want to get to the bottom of it. Could you provide a minimal reproduction of it? Could just be a gist or you can drop the source here. Thanks

@doesdev I'm afraid it's a part of the complex setup in a closed-source project, so I won't be able to share the code. I was just hoping that you could have an idea about this. I will try to provide more details if I get a chance to work on this further.

I'm going to close this for now but feel free to re-open if you have any more details to help troubleshoot.