Rmwc: Bundle size reported as 88.7 kB (min+gzipped)

Created on 4 Jun 2018  路  2Comments  路  Source: jamesmfriedman/rmwc

According to docs, RMWC is around 15KB

image

According to bundlephobia, it's close to 90Kb (min + gzipped)

image

Is bundlephobia including entire material-components-web package? Or is there some other discrepancy?

enhancement help wanted

All 2 comments

Hi @mrchief! There was a time where that was an accurate statement, but MDC as well as RMWC have grown a lot since then. I'm definitely interested in getting the size back down, so how about we turn this issue into a couple of things:

  • [x] Updates docs to reflect actual build size
  • [x] Look for optimizations to decrease the build size

Reporting back on this

Bundlephobia added a composition tool which exposes what really makes up the package.The 90K minified includes the code coming from MDC.

RMWC only accounts for 19% of that number. Mix that in with tree shaking and your apps should be nice and lean.

image

Was this page helpful?
0 / 5 - 0 ratings

Related issues

darrencruse picture darrencruse  路  6Comments

hronro picture hronro  路  3Comments

jordoh picture jordoh  路  3Comments

UFOMelkor picture UFOMelkor  路  6Comments

robcaldecottvelo picture robcaldecottvelo  路  6Comments