antvis / antvis/G2Plot

🤔 [QUESTION] package.json中的sideEffects字段缺失,导致tree shaking失效

Open
#3,091 2 comments 0 reactions 0 assignees View on GitHub
Question
Dominant language
TypeScript
Stars
2.7k
Forks
591
PR merge metrics
No merged PRs in 30d

Description

### 🐛 Question description [Please make everyone to understand it]
请问为什么package.json中的sideEffects字段没有了,导致不能使用tree shaking了,在之前的changelog 2.3.20 (2021-05-13) 中是添加了这个字段的,

commit地址: https://github.com/antvis/g2plot/commit/7f4cd17dfeb430534e660e1902009c83e349b71c

### 🏞 Expected result
支持tree shaking

### 🚑 Any additional [like screenshots]

* **G2Plot Version**: 2.4.7
* **Platform**: mac

Contributor guide

Open the contributing guide

Research direction

Start by inspecting package.json in the v2.4.7 tree and comparing it with commit 7f4cd17dfeb430534e660e1902009c83e349b71c. Check the package metadata and build output for tree-shaking behavior; done means the published package supports tree shaking as expected.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
build-system
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.