readymade-ui / starter

Starter code for building a site with Readymade
8 stars 2 forks source link

Parcel isn't treeshaking readymade bundle #1

Open steveblue opened 4 years ago

steveblue commented 4 years ago

67% reduction in bundle size when bundling with rollup of instead parcel. Parcel is not tree shaking several classes from @readymade/core FESM, while rollup can. Steps to reproduce a simple example are below. Bug is reproducible on bug/optimize branch.

Steps to reproduce

  1. yarn install
  2. yarn prod && yarn serve

Observe size of client.js (~23.17 KB)

  1. yarn prod:rollup && yarn serve

Observe size of client.js (~7.61 KB)

readymade-ui commented 4 years ago

bug/optimize branch