frictionlessdata / datapackage-js

A JavaScript library for working with Data Package.
http://frictionlessdata.io/
MIT License
43 stars 15 forks source link

Reduce bundle size #87

Closed roll closed 7 years ago

roll commented 7 years ago

Overview

The same as in https://github.com/frictionlessdata/tableschema-js/issues/67

roll commented 7 years ago

FIXED


Reduced minified bundle from 1.25 MB to 570.59 kB:

<self>: 402.01 KB (31.9%)
lodash: 179.28 KB (14.2%)
tableschema: 142.08 KB (11.3%)
moment: 125.92 KB (9.99%)
readable-stream: 66.17 KB (5.25%)
tv4: 54.87 KB (4.35%)
buffer: 47.47 KB (3.77%)
axios: 35.57 KB (2.82%)
...

If critical further we could improve I guess to around 200-400kb optimizing lodash usage and cherry-pick bundled profiles.