You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to use the instructions to use tree shaking and then did an analysis of the bundle.
See for yourself
thats a total of 6mb for rendering three different kinds of charts. don't think that's the way it was intended. echarts show up twice, once in the vendor module where it seems like everything gets pulled in and once outside of it.
here is. my config (./config/echarts-config.ts)
import{TitleComponent,TooltipComponent,GridComponent,DatasetComponent,TransformComponent,LegendComponent,}from'echarts/components';import{BarChart,LineChart,PieChart}from'echarts/charts';import{LabelLayout,UniversalTransition}from'echarts/features';import{CanvasRenderer}from'echarts/renderers';import'echarts/theme/macarons.js';import*asechartsfrom'echarts/core';// Register the required componentsecharts.use([BarChart,LineChart,TitleComponent,TooltipComponent,GridComponent,DatasetComponent,TransformComponent,LabelLayout,UniversalTransition,CanvasRenderer,LegendComponent,PieChart,]);export{echarts};
I am honestly not sure what is going on, I created a new fresh angular repo where I imported the exact same code but there I only got a couple hundred kb as expected, whereas this angular/ionic repo we are working on spits out the whole echarts dep when using this palette.
hi guys,
I wanted to use the instructions to use tree shaking and then did an analysis of the bundle.
See for yourself
thats a total of 6mb for rendering three different kinds of charts. don't think that's the way it was intended. echarts show up twice, once in the vendor module where it seems like everything gets pulled in and once outside of it.
here is. my config (./config/echarts-config.ts)
then in my app.module.ts
please let me know if you can reproduce this.
The text was updated successfully, but these errors were encountered: