Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webpack tree shaking not working too well on echarts #8239

Closed
Amine-H opened this issue Apr 27, 2018 · 4 comments
Closed

Webpack tree shaking not working too well on echarts #8239

Amine-H opened this issue Apr 27, 2018 · 4 comments
Labels
stale Inactive for a long time. Will be closed in 7 days.

Comments

@Amine-H
Copy link

Amine-H commented Apr 27, 2018

One-line summary [问题简述]

Webpack tree shaking not working too well on echarts

dependencies

Version & Environment [版本及环境]

  • ECharts version [ECharts 版本]: 4.0.4
  • Browser version [浏览器类型和版本]: Chrome 65.0.3325.181 (Official Build) (64 bits)
  • OS Version [操作系统类型和版本]: macOS 10.13.4

Expected behaviour [期望结果]

would be great if I could only bundle Piechart into my solution.

ECharts option [ECharts配置项]

option = {

}

Other comments [其他信息]

@shinnc
Copy link

shinnc commented Jan 20, 2020

Any update on this?

@aesyondu
Copy link

aesyondu commented Apr 2, 2020

Hi, did you follow the instruction on the docs?
https://echarts.apache.org/en/tutorial.html#Use%20ECharts%20with%20webpack

Went down from 2.5mb -> 1mb

Before:
import echarts from "echarts"
image
After:
import echarts from 'echarts/lib/echarts'
import 'echarts/lib/chart/bar'
import 'echarts/lib/chart/line'
import 'echarts/lib/component/tooltip'
import 'echarts/lib/component/title'
image

@github-actions
Copy link
Contributor

github-actions bot commented Apr 2, 2022

This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.

@github-actions github-actions bot added the stale Inactive for a long time. Will be closed in 7 days. label Apr 2, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Apr 9, 2022

This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!

@github-actions github-actions bot closed this as completed Apr 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Inactive for a long time. Will be closed in 7 days.
Projects
None yet
Development

No branches or pull requests

3 participants