nodeca / probe-image-size

Get image size without full download. Supported image types: JPG, GIF, PNG, WebP, BMP, TIFF, SVG, PSD, ICO.
MIT License
978 stars 77 forks source link

dist is too big! #51

Closed wxfred closed 3 years ago

wxfred commented 3 years ago

I create a vue cli3 program with webpack-bundle-analyzer installing. The chunk-vendors.js is up to 1.16M after import probe-image-size package while the origin chunk-vendors.js is 110.23KB. I test another package image-size which is mentioned in your readme file, the final chunk-vendors.js is 155.47KB.

After import probe-image-size, webpack-bundle-analyzer shows there are a lot of packages using the same package bn.js. That's weird.

wxfred commented 3 years ago

Both 5.0.0 and 6.0.0 have the same problem. probe-image-size-chunk-vendors

puzrin commented 3 years ago

This module has server-specific code. You can try to requie only sync part.