-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @weniver, This looks right to me. Stat is the size of the inputs sent to webpack before any tree-shaking or transforms take place, so I would focus more on parsed or gzip sizes which are representative of your final bundle. https://github.com/webpack-contrib/webpack-bundle-analyzer/blob/master/README.md#size-definitions At 10.32 KB gziped, I would assume that your bundle size would be measurably smaller than with moment.js as they advertise their minified gzip sizes at 18 KB without locales and 73 KB with locales. Is this not the case? Also check out the Bundlephobia page for a very nice breakdown of function sizes in the "exports analysis" section: https://bundlephobia.com/package/date-fns Hope this helps! |
Beta Was this translation helpful? Give feedback.
Hi @weniver,
This looks right to me.
Stat is the size of the inputs sent to webpack before any tree-shaking or transforms take place, so I would focus more on parsed or gzip sizes which are representative of your final bundle. https://github.com/webpack-contrib/webpack-bundle-analyzer/blob/master/README.md#size-definitions
At 10.32 KB gziped, I would assume that your bundle size would be measurably smaller than with moment.js as they advertise their minified gzip sizes at 18 KB without locales and 73 KB with locales. Is this not the case?
Also check out the Bundlephobia page for a very nice breakdown of function sizes in the "exports analysis" section: https://bundlephobia.com/package/da…