antvis / antvis/G6

[Bug]: vue2使用5.0,打包体积和全部引入一样大,比4.0大1M,没有treeshaking

Open
#7,539 1 comment 0 reactions 0 assignees View on GitHub
feature 💡
Dominant language
TypeScript
Stars
12.3k
Forks
1.6k
PR merge metrics
No merged PRs in 30d

Description

### Describe the bug / 问题描述

vue2升级antvg6由4.x到5.x,打包体积和全部引入一样大,比4.x大1M,没有treeshaking

### Reproduction link / 复现链接

_No response_

### Steps to Reproduce the Bug or Issue / 重现步骤

_No response_

### Version / 版本

🆕 5.x

### OS / 操作系统

- [ ] macOS
- [x] Windows
- [ ] Linux
- [ ] Others / 其他

### Browser / 浏览器

- [x] Chrome
- [ ] Edge
- [ ] Firefox
- [ ] Safari (Limited support / 有限支持)
- [ ] IE (Nonsupport / 不支持)
- [ ] Others / 其他

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the Vue 2 bundle comparison described for G6 5.x versus 4.x, using selective imports and a full import. Inspect the package build and module-entry configuration to identify why tree-shaking is absent; done means selective imports produce a smaller bundle than full imports and do not add the reported 1 MB increase.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.