baidu / baidu/amis

amis打包太大

Open
#4,033 26 comments 3 reactions 0 assignees View on GitHub
need confirm
Dominant language
TypeScript
Stars
18.9k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

#### 描述问题:

``amis``打包太大了,详情看[打包分析](https://dev.iotn2n.com/report.html)
打包后的总文件大小``33.39mb``,其中``amis``占``9.4mb``,``amis``依赖包``monaco-editor``占``15.64md``
#### 截图或视频:
![image](https://user-images.githubusercontent.com/55233292/163158476-2bf3e3e3-e725-43fb-ae11-d57021e08173.png)
![image](https://user-images.githubusercontent.com/55233292/163158771-a2cbf8aa-3677-4106-acce-b39a0d8e0865.png)

![image](https://user-images.githubusercontent.com/55233292/163158395-a9dae507-c460-42ac-8af6-06b3a9691f9f.png)

#### 如何复现(请务必完整填写下面内容):

1. 你是如何使用 amis 的?
``npm``

2. amis 版本是什么?请先在最新 beta 版本测试问题是否存在
``amis:1.5.3``
3. 粘贴有问题的完整 `amis schema` 代码:
```
[report.html](https://dev.iotn2n.com/report.html)
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the linked report.html and verify the reported bundle composition for amis and its monaco-editor dependency. Trace the package entry points and build output responsible for the reported sizes, then compare a rebuilt bundle against the report; done means the bundle is measurably smaller without breaking the reported amis usage.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.