Skip to content

Help with bundle size #2521

Answered by fturmel
weniver asked this question in Q&A
Jun 17, 2021 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

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…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@weniver
Comment options

@weniver
Comment options

@fturmel
Comment options

Answer selected by weniver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants