ant-design / ant-design/pro-components

🧐[问题] pro-component的PageHeader 将所有的语言字符 build进了 打包文件中, 如何过滤, 只保留英文?

Open
#8,713 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4.8k
Forks
1.4k
Avg merge
10h 44m
Merged PRs (30d)
3

Description

### Reproduction link

[![Edit on StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/edit/antd-reproduce-5x-396mt8?file=package.json)

### Steps to reproduce

npm run build

### What is expected?

不希望所有的语言(中文), 被打包进dist文件中

### What is actually happening?

所有的语言, 被打包进dist文件中
image
image

| Environment | Info |
| --- | --- |
| antd | 5.20.6 |
| React | 17 |
| System | mac monterey 12.6 |
| Browser | chrome |

Contributor guide

Open the contributing guide

Research direction

Use the linked StackBlitz reproduction and run npm run build first. Trace how the pro-component PageHeader language data enters the dist output, then verify that the build retains only English while preserving the component behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
build-system, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.