Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Form] 导致打包体积过大 #2612

Open
FireBushtree opened this issue Nov 23, 2023 · 4 comments
Open

[Form] 导致打包体积过大 #2612

FireBushtree opened this issue Nov 23, 2023 · 4 comments
Assignees
Labels
compatibility issue for compatibility

Comments

@FireBushtree
Copy link
Contributor

tdesign-react 版本

1.3.1

重现链接

https://github.com/FireBushtree/weight-control

重现步骤

Form 组件的 useInitialData.ts 文件中引入了其他组件,用来初始化表单的值。
image
导致打包后,我在项目中没有使用 RangeInput 等组件,但是它们的代码还是被打包进项目了。
image

期望结果

在未使用RangeInput 等组件的情况下,能够成功tree-shaking

实际结果

没有使用的组件,也被打包了

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

No response

Copy link
Contributor

👋 @FireBushtree,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

Copy link
Contributor

♥️ 有劳 @ximendatie @cuijinyu @BaoTao1997 @yume316 @honkinglin 尽快确认问题。
确认有效后将下一步计划和可能需要的时间回复给 @FireBushtree

@HaixingOoO HaixingOoO added the compatibility issue for compatibility label Nov 23, 2023
@Except10n
Copy link
Contributor

这个问题有进展了么

@HaixingOoO
Copy link
Collaborator

这个问题有进展了么

这个讨论看怎么优化才行

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compatibility issue for compatibility
Projects
None yet
Development

No branches or pull requests

4 participants