msbasanth commented on issue #15138:
URL: https://github.com/apache/echarts/issues/15138#issuecomment-864861392


   @pissang Thanks for the solution given.
   As suggested registered theme by passing the json theme data 
`echarts.registerTheme('dark',theme)` .
   **Observation**
   I could see reduction, now main.js size of the angular application is 
**687KB.** Base Angular main.js size is **140KB,** that means approx. **540KB** 
added by echarts.
   So it looks like tree shaking is working as documented. Hope this is the 
reduction I can expect.
   
   
![image](https://user-images.githubusercontent.com/17777813/122734164-7931c200-d29b-11eb-815c-d7da98808466.png)


-- 
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.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to