xlsdg / vue-echarts-v3

Vue.js(v2.x+) component wrap for ECharts.js(v3.x+)
https://xlsdg.github.io/vue-echarts-v3-demo/
MIT License
904 stars 124 forks source link

Remove lodash dependency #98

Closed vgavro closed 6 years ago

vgavro commented 6 years ago

The only use of lodash is "_.throttle" function in whole project. echarts doesn't have depency for lodash aslo, so this looks like a HUGE overhead to me.

vgavro commented 6 years ago

I guess I got it... with babel-plugin-lodash+lodash-webpack-plugin you decreased size of resulting bundle, I just had imported component from source, not from dist, and without babel-plugin-lodash+lodash-webpack-plugin I had have full lodash dependency as result... so huge overhead is just my misconfiguration.