Nivo: Bundle size

Created on 13 Feb 2018  路  4Comments  路  Source: plouc/nivo

Hello,
I might be wrong, but it looks like Nivo is importing the whole lodash-es in the bundle to use only a tiny subset of it.

According to WebPackBundleAnalyzerPlugin the size of lodash-es exceeds the one of Nivo itself.
Is there any chance you would consider optimising the imports to include only the needed parts?

This is the screenshot from the webpack plugin with the responsive line example from your website
screenshot 2018-02-13 17 13 13

Most helpful comment

Is there any update on this? The size of the imported javascript is very large, and you also download it multiple times if you are going to use a different type of graph

image

those two bundles correspond to the @nivo/line and @nivo/bar modules, which are not sharing common code

All 4 comments

Is there any update on this? The size of the imported javascript is very large, and you also download it multiple times if you are going to use a different type of graph

image

those two bundles correspond to the @nivo/line and @nivo/bar modules, which are not sharing common code

I'd like to help solving this. Could you point me in a general direction of what needs to be done?

Moved to rollup & use now use scoped imports (@nivo/<package>@0.35.2+).

Thanks, sir :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Buvaneshkumar7 picture Buvaneshkumar7  路  3Comments

Haaziq-Uvais picture Haaziq-Uvais  路  3Comments

danpettay picture danpettay  路  3Comments

barnapisti1994 picture barnapisti1994  路  3Comments

zhe1ka picture zhe1ka  路  3Comments