antvis / antvis/G2Plot

🐛 [BUG] Npm dependency of antv G2Plot is injecting ES6 code

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

Description

### 📷 Step to reproduce
Build my project with antv G2Plot as an npm dependency. Inspect final code out to find const and arrow function based code.
### 🏞 Expected result
Final build should contain only ES5 standard code.

* **G2Plot Version**: 2.4.25
* **Platform**: Browser (npm)

Contributor guide

Open the contributing guide

Research direction

No source file, test, or build entry point is named. Start by reproducing the npm build with G2Plot 2.4.25 and inspect the generated code for const declarations and arrow functions; done means the browser bundle contains only ES5-standard code.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.