You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2021/09/22 10:14:45 UTC

[GitHub] [echarts] WissemAouichi commented on issue #15739: Link for "Create custom build"-tutorial is missing for v5 documentation

WissemAouichi commented on issue #15739:
URL: https://github.com/apache/echarts/issues/15739#issuecomment-924788823


   @pissang I am using echarts in angular, after trying both the minimal bundle import as in [how to import](https://echarts.apache.org/handbook/en/basics/import/) it returned a **bundle size of 3.01 Mo** when checked with webpack bundle analyzer. 
   
   When i used a custom echart file like so:
    export * from 'echarts/src/echarts';
   
   import 'echarts/src/chart/line';
   import 'echarts/src/chart/bar';
   // component examples:
   import 'echarts/src/component/tooltip';
   import 'echarts/src/component/title';
   import 'echarts/src/component/toolbox';
   
   Then the **bundle size was 1.46 Mo**.
   
   Using the link downloaded from the online builder in the angular scripts loads everything in the main.js and make it voluminous.
   
   @pissang should i continue using the custom echarts file to have smaller bundle size? what are your recommendations ?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org