apache / apache/echarts

[Feature] 可以从echarts.min.js里面按需引入吗

Open
#20,691 1 comment 0 reactions 0 assignees View on GitHub
new-feature pending
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### What problem does this feature solve?

react项目使用echarts按需引入,打包时排除了echarts依赖,在产物中有require("echarts/core")的类似。在使用项目时,提供echarts.min.js作为echarts环境,显示无法找到core.js等报错。
In a React project using ECharts with on-demand imports, the ECharts dependency was excluded during the build process. However, the output still contains statements like require("echarts/core"). When using the project, providing echarts.min.js as the ECharts environment results in errors indicating that core.js cannot be found.

### What does the proposed API look like?

11

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.