Skip to content

Use @babel/plugin-transform-runtime to prevent babel from generating dupe helper functions #4284

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

Closed
1 task done
CarterLi opened this issue Jun 28, 2021 · 1 comment
Closed
1 task done
Assignees
Labels

Comments

@CarterLi
Copy link
Contributor

  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

antdv 显式关闭了 @babel/plugin-transform-runtime 的使用

导致生成的dist包中出现大量重复的helper代码,光对象扩展运算符的helper函数就生成了200多次

image

建议打开 helpers: true,减少helper函数的生成,可以显著减少dist代码的体积,增加可读性

What does the proposed API look like?

N/A

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants